Explode your GeoJSON FeatureCollections into directories of separate GeoJSON Feature files.
npm install geojson-cli-explodeExplode your GeoJSON FeatureCollections into directories of separate GeoJSON Feature files.



``sh`
$ npm install -g geojson-cli-explode
$ cat my-feature-collection.geojson | geojson-cli-explode
$ ls features/
1.geojson 2.geojson 3.geojson ...
A GeoJSON file containing a FeatureCollection is expected via stdin. The FeatureCollection will be split into a series of individual files placed within the same directory, each file containing one Feature. By default, the files will be named 1.geojson, 2.geojson, etc.
Write the Feature files to directory. Defaults to features if not specified.
Use extension as the filename extension for the Feature files. Defaults to geojson if not specified.
If specified, the filename for each Feature file will including its bounding box. The bounding box will be rounded outward to six decimal places, and the filenames will be formatted like so:
``
For example: 42.[-58.531458,-34.70563,-58.335124,-34.526553].geojson
Send any warnings (normally written to stderr) straight to /dev/null`.
* Limit bboxes in filenames to six decimal places of percision
* set up CI: travis, coveralls
* fix description in package.json
* Initial release