Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Investigate algorithm for establishing a tile sets minimum zoom #266

Open
stevendlander opened this issue Jun 19, 2015 · 1 comment
Open
Assignees

Comments

@stevendlander
Copy link
Contributor

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
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants