Hello,
I was wondering if GeoTools has any conventions around handling
ambiguous polygon filters in EPSG:4326. GeoMesa has always had some code
that interprets polygons with unbroken x spans of more than 180 degrees
as wrapping the anti-meridian, instead of spanning the entire globe. We
picked this behavior up from JTS I believe. However, it seems that other
data stores do not do that (we looked at postgis and shpfiles). I
created an example of what I mean as a github gist, showing GeoServer
applying the filter POLYGON ((-71 -89, 135 -89, 135 89, -71 89, -71
-89)), first to a shapefile and then to a GeoMesa store:
https://gist.github.com/elahrvivaz/c296ba75e4ef3f0b70755cf9420f67d5
I know some systems indicate a a certain wrapping direction for
coordinates, or have other conventions. Does GeoTools have any
conventions we should be adhering to? And what is the standard way to
query across the anti-merdian? Use a MultiPolygon, an OR filter,
something else?
Thanks,
Emilio
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel