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

merging "features" does not re-increment the "id" property #25

Open
jonathancallahan opened this issue Apr 13, 2018 · 1 comment
Open

Comments

@jonathancallahan
Copy link

We are using geojson-merge to merge the following three files:

https://haze.airfire.org/monitoring/latest/geojson/airnow_PM2.5_latest10.geojson
https://haze.airfire.org/monitoring/latest/geojson/airsis_PM2.5_latest10.geojson
https://haze.airfire.org/monitoring/latest/geojson/wrcc_PM2.5_latest10.geojson

geojson-merge does not re-increment each feature's id so we end up with a combined file with non-unique ids which causes ArcGIS Online to fail.

@andrewharvey
Copy link
Contributor

Personally I don't believe that should be within the scope of geojson-merge. I see these GeoJSON utilities like unix text processing commands, they should focus on doing one job and handle complex scenarios via constructing them in a chain via pipes.

As such how about piping them through https://github.com/andrewharvey/geojson-id-streaming which will reset the id's.

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

No branches or pull requests

2 participants