geojson-tippecanoe-extensions-from-attributes
v1.0.0
Published
Adds feature level tippecanoe GeoJSON extensions from feature properties
Readme
geojson-tippecanoe-extensions-from-attributes
Adds feature level tippecanoe GeoJSON extensions from feature properties.
From
{
"type": "Feature",
"properties": {
"layer": "road",
"minzoom": 10,
"maxzoom": 16
},
"geometry": null
}To
{
"type": "Feature",
"tippecanoe": {
"layer": "road",
"minzoom": 10,
"maxzoom": 16
},
"properties": {},
"geometry": null
}install
npm install -g geojson-tippecanoe-extensions-from-attributesusage
geojson-tippecanoe-extensions-from-attributes < file.geojson > output.geojsoncredits
This code was adapted from https://github.com/node-geojson/geojson-pick
