A lint tool for newline-delimited GeoJSON streams. Based on geojsonhint
.
npm install --global ndgeojson-lint
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
- 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.