GitHubRGI / swagd

New development has moved to GitLab
https://gitlab.com/GitLabRGI/swagd
MIT License
3 stars 1 forks source link

Investigate algorithm for establishing a tile sets minimum zoom #266

Open stevendlander opened 9 years ago

stevendlander commented 9 years ago

When a raster image is tiled, SWAGD first checks to see what zoom levels the image would be valid for. Our goal is to start at a zoom level that has only one tile (min zoom or lowest integer zoom).

This is determined in GdalUtility.zoomLevelForPixelSize(). Adjust this algorithm so we don't have to check in GdalUtility.getMinimalZoom to see if we need to reduce the min zoom any further.

stevendlander commented 8 years ago

A minimal zoom for a raster image should be the zoom level on which the raster image would produce a map area roughly equivalent to a tile (256, 512, etc). See line 1176 of gdal2tiles_parallel in geopackage-python repo.

The python functionality should be mimic'd as much as possible.