mapbox / geojson-merge

Merge multiple GeoJSON files into one FeatureCollection.
ISC License
233 stars 33 forks source link

Merging broken? #17

Closed AdamFrey closed 7 years ago

AdamFrey commented 7 years ago

I installed version 1.0.1 and am trying to merge from the CLI.

No matter what combination of input files I specify, only the first file is present in the combined result, each other file is represented with a null item in the features list.

tmcw commented 7 years ago

More details, please. Are you using Windows or another unusual platform? Are the files FeatureCollections or another type? Can you provide examples of the files?

AdamFrey commented 7 years ago

Sorry, I could have provided more context. This is on MacOS. The files are all FeatureCollections. Here are two of the files I'm trying to merge: https://gist.github.com/AdamFrey/46eb9eee51a0cd67d843010c6c319e54

The third file in the gist is the result of me running:

geojson-merge Albemarle.geo.json Accomack.geo.json > combined.geo.json
tmcw commented 7 years ago

Thanks! Fixed in 1.0.2

AdamFrey commented 7 years ago

Thank you.

Monduiz commented 7 years ago

I am encountering the same problem on windows. Two FeatureCollections as well.

tmcw commented 7 years ago

More details, please. Can you provide examples of the files? What's the input, what's the output, is there an error message. Always more details, always, please.

Monduiz commented 7 years ago

I am not sure I can upload the files, they are a bit bigger but I will see what I can do. The output is just the second file of the two in the command without the first. I am running the latest version of geojson-merge on Windows 7. No error message. It just completes and what is left is whichever file came second.

geojson-merge file1.geojson file2.geojson > merged.geojson