A tool to extract parts of an MBTiles file into separate files using a GeoJSON with polygons (e.g. split world data into countries).
The mbtiles-extracts
tool extracts all tiles intersecting with the polygons in the GeoJSON. For example:
mbtiles-extracts
returnsnpm install mbtiles-extracts
$ mbtiles-extracts <MBTiles path> <GeoJSON path> <property name>
$ mbtiles-extracts planet.mbtiles countries.json admin