Hi Gregory
the spatial module cannot realize that your object is a OPoint. In order to use the spatial functions and the spatial index you should use directly OPoint as embedded property in your domain as written in the documentation http://orientdb.com/docs/2.2/Spatial-Index.html Thanks Enrico 2016-12-26 19:41 GMT+01:00 Gregory Mace <macegh...@gmail.com>: > 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? > > > > > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to orient-database+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.