-
Notifications
You must be signed in to change notification settings - Fork 955
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
turf-mask fails #837
Comments
Internally this library is using Solution: We could use |
I am having the same issue here, I can try to fix and send a PR :) |
That would be great thanks @thiagoxvo , sing out if you need a hand! |
thiagoxvo
added a commit
to thiagoxvo/turf
that referenced
this issue
Jul 26, 2017
Change from featureEach to flattenEach will output simple Polygons. Fix Turfjs#837
Merged
thiagoxvo
added a commit
to thiagoxvo/turf
that referenced
this issue
Jul 26, 2017
Change from featureEach to flattenEach will output simple Polygons. Fix Turfjs#837
DenisCarriere
pushed a commit
that referenced
this issue
Jul 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GeoJSON data as a gist file or geojson.io (filename extension must be
.geojson
).http://geojson.io/#id=gist:anonymous/59a73beffdced0e4f7d2d12eb271d380&map=16/-36.8815/174.8318
Snippet of source code or for complex examples use jsfiddle.
http://jsbin.com/joqeraloxe/edit?html,console,output
In the above data/example app, turf-mask fails with:
From what I could tell it's the
unionPolygons
step where it returns a MultiPolygon but the spec at https://github.com/Turfjs/turf/blob/master/packages/turf-mask/index.js#L137 says it should only return Polygon:@returns {FeatureCollection<Polygon>} polygons only apply union if they collide
I don't have the time to investigate further and I'll workaround this issue so it's not a critical issues.
/cc @rowanwins just flagging you as you did the original implementation.
The text was updated successfully, but these errors were encountered: