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

extract geometrycollection geometries to features #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wandergis
Copy link

add geometrycollection condition:
extract geometrycollection geometries to features.
sorry about with vscode prettier format.

add geometrycollection condition:
extract geometrycollection geometries to features.
change arrow function to es5
@jdnichollsc
Copy link

Hey @tmcw, what do you think about this PR?

Thanks for your help! <3

@tmcw
Copy link
Contributor

tmcw commented Apr 20, 2022

I don't work at Mapbox anymore so can't review or merge PRs.

This one, though - I don't think this is the correct behavior. The purpose of geojson-normalize is to normalize features and bare geometries to FeatureCollections. For it to split GeometryCollections would be incorrect. See geojson-flatten for a utility to flatten multi features.

@jdnichollsc
Copy link

Sounds great, thanks for letting me know dude! <3

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.

3 participants