mapbox / mbtiles-extracts

Extract parts of MBTiles into separate files using a GeoJSON with polygons.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MBTiles Extracts

A tool to extract parts of an MBTiles file into separate files using a GeoJSON with polygons (e.g. split world data into countries).

Results from mbtiles-extracts

The mbtiles-extracts tool extracts all tiles intersecting with the polygons in the GeoJSON. For example:

For a given polygon in an mbtiles file

screen shot 2018-11-11 at 1 46 52 pm

mbtiles-extracts returns

screen shot 2018-11-11 at 1 46 18 pm

NOT

screen shot 2018-11-11 at 2 10 10 pm

Usage:

npm install mbtiles-extracts
$ mbtiles-extracts <MBTiles path> <GeoJSON path> <property name>

Example:

$ mbtiles-extracts planet.mbtiles countries.json admin

About

Extract parts of MBTiles into separate files using a GeoJSON with polygons.

License:ISC License


Languages

Language:JavaScript 100.0%