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

booleanContains with MultiPolygon #2337

Closed
Debakel opened this issue Sep 20, 2022 · 0 comments · Fixed by #2338
Closed

booleanContains with MultiPolygon #2337

Debakel opened this issue Sep 20, 2022 · 0 comments · Fixed by #2338

Comments

@Debakel
Copy link
Contributor

Debakel commented Sep 20, 2022

Consider the following three polygons, pink, green, and yellow:

grafik

turf.booleanContains(green, yellow) correctly returns True, because green spatially contains yellow.
However, if a MultiPolygon is built out of pink and green, an exception is thrown:

var pink_and_green = turf.multiPolygon(pink, green)
turf.booleanContains(pink_and_green, yellow)
// ❌ Error: feature1 MultiPolygon geometry not supported

Is there a reason why turf does not support this? Or is it just not implemented yet?


Please provide the following when reporting an issue:

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 a pull request may close this issue.

1 participant