On Wed, Jun 8, 2016 at 10:54 AM, Randall Tidd <r...@tidd.cc> wrote: > >> I see that it still depends on JTS. > > > > Correction: LatLonPoint most definitely does NOT depend on JTS > > I’m sorry this is my mistake, I was using > org.locationtech.spatial4j.context.jts.JtsSpatialContext in my example > which depends on JTS. However I now realize I’m able to switch to > org.locationtech.spatial4j.context.SpatialContext and my example works fine > because I’m only indexing points and searching for points within a polygon > and LatLonPoint handles this (in conjunction with > LatLonPointInPolygonQuery). Thank you for pointing that out. >
Hmm but why do you even need a spatial4j SpatialContext when using LatLonPoint? You shouldn't need spatial4j at all, to do "indexed point in polygon query". Mike McCandless http://blog.mikemccandless.com