locationtech / spatial4j

LocationTech Spatial4j: A Geospatial Library for Java
https://projects.eclipse.org/projects/locationtech.spatial4j
937 stars 168 forks source link

JTS polygons that pole wrap #5

Open dsmiley opened 12 years ago

dsmiley commented 12 years ago

It should be possible to take polygons that wrap a pole and process the points so that JTS is happy with it and that it covers the same area. We've got dateline support coordinate pre-processing already.

dsmiley commented 6 years ago

@JacobBrandt I'm glad you're interested in solving this! I recently posed the question on the JTS Dev list -- https://dev.locationtech.org/mhonarc/lists/jts-dev/msg00219.html

dsmiley commented 6 years ago

By the way, if per chance you are using Spatial4j in the context of Lucene or Solr, then another option is to use Geo3D: https://builds.apache.org/job/Solr-reference-guide-master/javadoc/spatial-search.html#geo3d-and-polygons-on-the-ellipsoid which supports various shapes on the surface of a sphere or ellipsoid. There are no special considerations about the poles or antimeridian.

dsmiley commented 6 years ago

@JacobBrandt do you plan on working on this within the next couple weeks? If so, I'll holdup the 0.7 release for it.

MichalTorma commented 2 years ago

Hi there, I'm aware that this issue is a bit stale but I'm just curious if there is any timeline to fix it. We use spetial4j in GBIF and possibility to use polygons that circle the pole would be very helpful for us

dsmiley commented 2 years ago

Sorry, there isn't. It would be a fun project for you or anyone to give it a try!