Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[spatial4j-dev] Geo3dSpatialContextFactory

First post here and I'm definitely no geospatial expert!  I have been using Spatial4j for stream processing and its been working great.  I am not implementing spherical functions and ran into a roadblock with the default SpacialContextFactory.  I know it supports spherical if you use point, circle, or rectangle but of course the trouble is that WKT and GeoJSON don't seem to support those shaes.  One option was to detect when a person is passing in a rectangle in the GeoJSON or WKT then construct the shape myself rather than relying on the Spatial4jStringDeserializer.  The other option I have been experimenting with is using the lucene extras Geo3d scf.  The later option seemed to work great but I only have rudimentary unit tests currently.  Any feedback on Geo3d or other advice?  

Also do you folks have good examples where euclidean returns a false positive which spherical would give you accurate results?  I was going to devise one but like I said this is not really my area of expertise so I figured someone out there may have some good examples.  Sincerest thanks in advance.

Back to the top