I've imported a large number of Objects that have location information in the form of:
POI
bunch of other fields ...
geometry:
type: 'Point',
coordinates: [ double, double ] // lon, lat
dimension: (int size of coordinates )
I thought I would be able to look at the geometry field as an OPoint and run spatial queries on this but I get an exception:
com.orientechnologies.orient.core.exception.OValidationException: impossible to convert value of field "geometry", incompatible with OPoint
Is there something I can do to realize this field (geometry) as an OPoint? I do not really want to have an OPoint embedded in my domain class (in addition to what I have already), also am not quite sure if I can do that. I already have the geo info in my domain class so would rather not go through the extra effort of adding an additional field to the Vertex in order to do my spatial query. Is there possibly a different way I can accomplish this?