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

Fixes related to GEOS 3.9 OverlayNG #2942

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

rouault
Copy link
Member

@rouault rouault commented Sep 17, 2020

The only change in code is the TransformBeforeAntimeridianToWGS84() method.
Instead of intersecting the geometry with a multipolygon made of two parts,
one left of the antimeridian, one right of it, but which were at a very
close distance, which resulted in a LINESTRING EMPTY intersection with OverlayNG,
we compute the difference between our geometry and a thin polygon around the
antimeridian, which works for older GEOS too.

The only change in code is the TransformBeforeAntimeridianToWGS84() method.
Instead of intersecting the geometry with a multipolygon made of two parts,
one left of the antimeridian, one right of it, but which were at a very
close distance, which resulted in a LINESTRING EMPTY intersection with OverlayNG,
we compute the difference between our geometry and a thin polygon around the
antimeridian, which works for older GEOS too.
@rouault
Copy link
Member Author

rouault commented Sep 17, 2020

Note: @pramsey fixed the issue in GEOS master ( in libgeos/geos@49ac5aa) that was triggered by the old way we cut at antimeridian . So we'd probably not need to change our code, but the new way is less convoluted, so let's just do that.

@rouault rouault merged commit 55efca5 into OSGeo:master Sep 17, 2020
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

Successfully merging this pull request may close these issues.

None yet

1 participant