clip-and-run
v1.2.0
Published
Clip GeoJSON into polygons, get datasets for each.
Downloads
9
Readme
Clip and Run
A simple utility to split up a GeoJSON Feature Collection by a supplied list of polygons / areas, and create a Mapbox Dataset for each area.
Usage:
First, set an environment variable called MapboxAccessToken
with your access token, must have the dataset:write
scope.
clip-and-run <source.geojson> <polygons.geojson> -o <output.geojson>
If you omit the -o
option, it will output to stdout
.
Additional options:
--name : Name field for datasets created
--description : Description field for datasets created
-o : Output file to write to
--accessToken : Supply access token as parameter if not setting environment variable