commenthol / gdal2tiles-leaflet

Generate raster image tiles for use with leaflet.
https://commenthol.github.io/leaflet-rastercoords/
MIT License
482 stars 130 forks source link

Zoom range lower than native zoom ignored? #4

Closed alexcroox closed 7 years ago

alexcroox commented 7 years ago

If I want to tile just zoom levels 0 and 1 (-z 0-1) it ignores my parameter and tiles 0-5.

5 being the "Native zoom of the raster".

My goal is to host this on AWS Lambda and allocate a single zoom level to each process so that I can process tiles as fast as possible through parallel computing power (low powered single core machines)

commenthol commented 7 years ago

"Basic Usage" of the README should provide you with the details. As workaround consider deleting the unwanted zoomlevels in the tiles dir.

alexcroox commented 7 years ago

It's more saving processing time since I'd be paying per second of compute time. Is there any technical reason why you can't specify individual zoom levels, or generate lower (0-1) than the "native zoom" if it was modified to do so?

commenthol commented 7 years ago

This project is just a slight modification of gdal2tiles. It does not change the core algorithm which first generates the base tiles, means zoom levels greater than the available pixels of the image. After this the overview tiles are generated - these are sub-sampled tiles of the image. Overview tile generation requires the base tiles first. So there is no easy way to speed up processing.