1.0.0 • Published 5 years ago

geojson-tippecanoe-extensions-from-attributes v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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