Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JtsGeometry.unwrapDateline creates an invalid polygon in some cases #186

Open
tadrinth opened this issue May 21, 2020 · 0 comments
Open

Comments

@tadrinth
Copy link

Start with this Geometry:
POLYGON ((-180 -24.5271348, -180 0.9447814, 180 0.9447814, 180 -24.5271348, -180 -24.5271348))

Pass it to a JtsGeometry, and when unwrapDateline is called during initialization, it modifies to the following:

POLYGON ((180 -24.5271348, 180 0.9447814, 180 0.9447814, 180 -24.5271348, 180 -24.5271348))

That's not a valid polygon; note that all the -180 longitudes are now 180, so all of those points are on a straight line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant