ecometrica / gdal2mbtiles

Converts a GDAL-readable dataset into an MBTiles file. This is used to generate web maps.
Apache License 2.0
165 stars 27 forks source link

Do not create tiles for areas with no data. #14

Open rohitrameshrao opened 6 years ago

rohitrameshrao commented 6 years ago

For large corridor projects, the tiling process ends up creating thousands of empty tiles (transparent). If there is a way to ignore areas with no data, it will help create tiles faster and of lower size.

mghughes commented 6 years ago

Apologies if I'm misunderstanding the issue, but does the --no-fill-borders argument help at all in your case?

rohitrameshrao commented 6 years ago

mbtiles issue

It is not working in my case. Check the image. My AOI is a corridor (Green dots with black border). While creating the tiles, it is creating it for the bounding box. The red dot areas are all empty tiles that need not be created simply because the whole tile is basically a transparent tile.

ykhedar commented 6 years ago

Did anyone made any progress in this direction? I have similar issue. with --no-fill-borders option it creates a large black background. test