GeoJSON Helpers
Helps read & write GeoJSON files based on RFC 7946 GeoJSON.
Install
$ npm install --save geojson-helpers
Quickstart
const featureCollection = geojson// <--Data processing-->geojson
Features
- Reads GeoJSON files
- Writes GeoJSON files
- Compact indentation, 1 line per feature (smallest file size possible)
- Limits coordinates decimals to a maximum of 6
- Does not include CRS
writeFileSync
Writes GeoJSON file
Parameters
path
stringgeojson
FeatureCollection GeoJSON FeatureCollectionproperties
[Array<(string | number)>] Only include the following properties
readFileSync
Reads GeoJSON file
Parameters
path
string File must be a GeoJSON FeatureCollection
Changelog
0.1.0 - 2016-11-09
Begining of project geojson-helpers
.
- readFileSync
- writeFileSync