Parse (Geo|S2)JSON from a file that is in a newline-delimited format Implements the FeatureIterator interface
import { NewLineDelimitedJSONReader } from 'gis-tools-ts';import { FileReader } from 'gis-tools-ts/file';const reader = new NewLineDelimitedJSONReader(new FileReader('./data.geojsonld'));// read the featuresfor await (const feature of reader) { console.log(feature);} Copy
import { NewLineDelimitedJSONReader } from 'gis-tools-ts';import { FileReader } from 'gis-tools-ts/file';const reader = new NewLineDelimitedJSONReader(new FileReader('./data.geojsonld'));// read the featuresfor await (const feature of reader) { console.log(feature);}
the input to parse from
the newline delimiter. Default is "\n" but can be "\r\n" or "\r"
Generator to iterate over each (Geo|S2)JSON object in the file
NewLine Delimited JSON Reader
Description
Parse (Geo|S2)JSON from a file that is in a newline-delimited format Implements the FeatureIterator interface
Usage