We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently .dissolve() supports a property option which is a pretty limited way of saying "apply the dissolve to these polygons, but not those ones".
.dissolve()
property
A more flexible approach would be a filter function:
var dissolved = turf.dissolve(features, { filter: f => f.properties.id === 47 } );
This way you're less likely to have to pre-massage the polygons to get the dissolve you want.
The text was updated successfully, but these errors were encountered:
Oh, actually I think it does do what I want, the documentation could just be clearer.
Replace:
features with equals 'propertyName' in
with
features with the same propertyName value will be dissolved.
propertyName
Sorry, something went wrong.
Update docs. Resolves #1806
54a72ff
Overhaul approach for dissolve module (#2008)
aef4d74
* Overhaul approach for dissolve module * Update docs. Resolves #1806 * More tests * run prettier * remove es6 and update yarn lock * Fix trailing bracket * rerun prettier * Ditch spread operator * prettier * remove let * Finally found remaining build dodginess * add test for properties * convert multipolys to polys to avoid breaking changes * run prettier * update package versions * fix use of hasOwnProperty * run prettier * remove changes to yarn * add empty line end yarnlock * try update yarn lock again Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
Successfully merging a pull request may close this issue.
Currently
.dissolve()
supports aproperty
option which is a pretty limited way of saying "apply the dissolve to these polygons, but not those ones".A more flexible approach would be a filter function:
This way you're less likely to have to pre-massage the polygons to get the dissolve you want.
The text was updated successfully, but these errors were encountered: