nd-geojson
v1.0.0
Published
Stream GeoJSON from a set of line-delimited features
Downloads
9
Readme
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.