How to store polygon data through browser

15 views
Skip to first unread message

thulaseeswara reddy gajjala

unread,
Dec 2, 2016, 12:56:38 AM12/2/16
to OrientDB
hi any one can help me below query

how to store a polygon data in orientdb through browser I have tried this:
{"@type":"d","@version":0,"@class":"OPolygon","coordinates":[[[72.79230192816932,18.94774395435967],[72.79227877224073,18.94774197280634],[72.79228473707543,18.94767850389454],[72.79230789299416,18.94768048544693],[72.79230192816932,18.94774395435967]]]}
while performing lucene functions its giving some exceptions .
thanks

user.w...@gmail.com

unread,
Dec 2, 2016, 1:46:44 AM12/2/16
to orient-...@googlegroups.com
Hi,

I tried you example and it works for me. I used v2.2.13.

This is my structure:

create class Restaurant
create property
Restaurant.coordinates embedded OPolygon
insert
into Restaurant SET location = {"@type":"d","@version":0,"@class":"OPolygon","coordinates":[[[72.79230192816932,18.94774395435967],[72.79227877224073,18.94774197280634],[72.79228473707543,18.94767850389454],[72.79230789299416,18.94768048544693],[72.79230192816932,18.94774395435967]]]}



Hope it helps,

Regards,
Michela
Reply all
Reply to author
Forward
0 new messages