civil-services-geojson-property-merge v1.0.0
Civil Services is a collection of tools that make it possible for citizens to be a part of what is happening in their Local, State & Federal Governments.
geojson-property-merge
Merge properties from a data set into the matching features of a GeoJSON object. This package can be used via the command line or inside your existing project.
Installation
$ npm install -g civil-services-geojson-property-merge
Command Line Usage:
The examples directory contains two files; states.geojson
containing the borders of states in the United States, and
states.json
containing additional properties for each of the states. The follow example will add the properties of
states.json
to the appropriate feature in the geojson file, omitting the properties "state" and "slug" from the output file.
$ geojson-property-merge --exclude state,slug --geojsonkey NAME --propertieskey state ./examples/states.geojson ./examples/states.json mergedOutput.geojson
Example Data
Thanks to Eric Celeste for making available a simplified GeoJSON file of the US States outlines.
License
MIT
6 years ago