1.0.0 • Published 8 years ago

nd-geojson v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

nd-geojson

Stream GeoJSON from a set of line-delimited features

Line-delimited GeoJSON features are faster and cheaper to process, but sometimes you need a FeatureCollection to visualize them, e.g. % cat line-delimited.json | nd-geojson | geojsonio.

Usage:

% cat line-delimited.json | nd-geojson
{
  "type": "FeatureCollection",
  "features": [
    { "type": "Feature", "properties": {}, "geometry": { "type": "Point", "coordinates": [ -115.44, 32.62 ] } },
    { "type": "Feature", "properties": {}, "geometry": { "type": "Point", "coordinates": [ -115.45, 32.63 ] } },
    { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [[0,0],[0,0],[0,0],[0,0] ] } }
  ]
}

A set of line-delimited features wrapped in a FeatureCollection

Inspired by maxogden/ndjson and mcollina/split2.

1.0.0

8 years ago