Skip to content

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

License

Notifications You must be signed in to change notification settings

mapbox/mbtiles-extracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published