nd-geojson

1.0.0 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i nd-geojson

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • rodowi