[hibernate-dev] [HSEARCH] Geospatial indexing and queries
Hardy Ferentschik
hardy at hibernate.org
Mon Dec 19 12:11:31 EST 2011
On Dec 19, 2011, at 6:04 PM, Emmanuel Bernard wrote:
> spatial()
> .onCoordinates("location")
> .within(2, KM).of(JTSLocation.class, jtsObject)
> .createQuery();
> ```
I prefer this, but probably with the arguments in 'of' rotated:
spatial()
.onCoordinates("location")
.within(2, KM).of(jtsObject, JTSLocation.class,)
.createQuery();
--Hardy
More information about the hibernate-dev
mailing list