I would like to provide a set of tools for downloading and importing data for the production of vector tiles in the hands-on session of the OSGeo.JP Workshop for the UN Vector Tile Toolkit.
$ git clone git@github.com:un-vector-tile-toolkit/spinel-produce
$ cd spinel-produce
$ npm install
All configuration are stored in config/default.json.
$ vi config/default.json
$ node download.js
This downloads GeoJSON text sequences from the following URLs.
- https://osgeo-jp.gitlab.io/spinel-data/gmlk20.ndjson.gz (6.4MB)
- https://osgeo-jp.gitlab.io/spinel-data/6-46-30.ndjson.gz (106MB)
$ node import.js > 6-46-30.ndjson
$ tippecanoe -f --read-parallel --drop-densest-as-needed --simplification=2 --minimum-zoom=6 --maximum-zoom=15 --base-zoom=15 --output=6-46-30.mbtiles 6-46-30.ndjson