spatial4j
spatial4j copied to clipboard
Implement a Polygon via java.awt.geom
Spatial4j already has one via JTS but it would be nice to not need the JTS dependency.
Ideally add dateline cross support, akin to how I've done it with JTS. That algorithm may be too complicated and rely on too many sophisticated JTS features, so a simpler implementation could be devised, like one that shifts/pages the query shape across an un-rolled polygon that goes out of geo bounds. JtsGeometry instead slices and shifts the poly after unrolling.