ndgeojson-lint
v0.0.1
Published
A lint tool for newline-delimited GeoJSON streams.
Downloads
3
Readme
ndgeojson-lint
A lint tool for newline-delimited GeoJSON streams. Based on geojsonhint
.
Install
npm install --global ndgeojson-lint
Usage
ndgeojson-lint filename.ndgeojson
You can also pipe newline-delimited GeoJSON to ndgeojson-lint
on STDIN, e.g.:
find . -name '*.geojson' -exec cat {} \; | jq -c . | ndgeojson-lint
Alternatives
- You could use
geojson-merge
to create a single GeoJSON file/FeatureCollection
, but this is tricky to do if you have more GeoJSON files than what your shell's argument length limits will allow.. - You could invoke
geojsonhint
on each individual GeoJSON file, but this is relatively slow for a large number of files.