geojson-tippecanoe-extensions-from-attributes
v1.0.0
Published
Adds feature level tippecanoe GeoJSON extensions from feature properties
Downloads
4
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-attributes
usage
geojson-tippecanoe-extensions-from-attributes < file.geojson > output.geojson
credits
This code was adapted from https://github.com/node-geojson/geojson-pick