0.5.0 • Published 5 years ago

geojson2ndjson v0.5.0

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
5 years ago

geojson2ndjson

Converts a GeoJSON file on disk into a newline-delimited output, following the ndjson specification. So you can combine it with the ndjson-cli tools, for instance.

Usage

npm install -g geojson2ndjson
geojson2ndjson myfile.geojson | ...

Or read from standard input:

cat myfile.geojson | geojson2ndjson | ...

Or multiple files:

geojson2ndjson *.geojson > everything.nd.json

ndjson2geojson

Converts a line-delimited GeoJSON file on disk into regular GeoJSON output, with no validation.

Usage

npm install -g geojson2ndjson
ndjson2geojson myfile.json | ...

Or read from standard input:

cat myfile.json | ndjson2geojson | ...

Examples

List the properties of every feature, without the geometries:

geojson2ndjson myfile.geojson | ndjson-map d.properties

Remove every property except "name" from a GeoJSON file:

geojson2ndjson myfile.geojson | ndjson-map 'd.properties = {name: d.properties.name}, d' | ndjson2geojson > myfile-out.geojson
0.5.0

5 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago