constfileReader = newFileReader(`${__dirname}/fixtures/basic3D.csv`); constcsvReader = newCSVReader(fileReader, { // set options, completely optional, but the values you see are the default. delimiter:',', // how the CSV document separates values lineDelimiter:'\n', // the line delimiter, sometimes "\r\n" or some specializ unicode character lonKey:'Longitude', // the key to use to store the longitude latKey:'Latitude', // the key to use to store the latitude heightKey:'height', // the key to use for the height or "z-value" });
// read the features forawait (constfeatureofcsvReader) { console.log(feature); }
CSV Reader
Description
Parse (Geo|S2)JSON from a file that is in the CSV format Implements the FeatureIterator interface
Usage
Links