clip-and-run
Clip GeoJSON into polygons, get datasets for each.
Last updated 4 years ago by batpad .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clip-and-run 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (4 years ago)
  • 1.0.0                                ...           v1.0.0 (4 years ago)

4 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |