tippecanoe icon indicating copy to clipboard operation
tippecanoe copied to clipboard

Question: How to filter existing mbtiles file by bounding box?

Open deanhuff opened this issue 3 years ago • 1 comments

I have a mbtiles file that I'd like to cut into smaller files mbtiles files by specifying lat/long bounding box.

I attempted to use the following but it did not work:

$ tippecanoe -z5 -o manatee.mbtiles --clip-bounding-box=27.599,-82.751,27.166,-81.992 --drop-densest-as-needed 2017-07-03_us_florida.mbtiles

For layer 0, using name "20170703_us_florida"
2017-07-03_us_florida.mbtiles:1: Found unexpected character
0 features, 10 bytes of geometry, 8 bytes of separate metadata, 0 bytes of string pool
Did not read any valid geometries

deanhuff avatar Aug 25 '20 20:08 deanhuff

There is not a way to do this currently. It probably wouldn't be super hard to hack it into tile-join since it has to decode and reencode the tiles anyway, so it could also clip the geometries as part of the process.

e-n-f avatar Feb 03 '21 06:02 e-n-f