Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Fix issues with outer rings not containing holes #28

Merged
merged 1 commit into from
Mar 16, 2016

Conversation

patrickarlt
Copy link
Contributor

This is a result of trying to fix Esri/esri-leaflet#320. Under certain conditions it is possible for outer rings to not always contain holes.

The solution is to check again to see if the hole intersects an outer ring after checking contains against every outer ring.

If a ring neither intersects another ring or is contained inside it it will be turned into an outer ring.

jgravois added a commit that referenced this pull request Mar 16, 2016
Fix issues with outer rings not containing holes
@jgravois jgravois merged commit 02a1b8b into Esri:master Mar 16, 2016
@jgravois
Copy link
Collaborator

pulled down locally and confirmed tests are passing. thanks from 2016 @patrickarlt!

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

Successfully merging this pull request may close these issues.

Simplifying Complex Polygons
2 participants