Closed emxsys closed 7 years ago
@pdavidc You're review is welcome, but not required to move forward.
When a GeoPackage-based layer is exported as a GeoPackage, the max zoom level is determined to be the max zoom level in the gridset (level 21), not the max level in the tileset.
This is problematic: it creates a request for a GeoPackage at the highest possible resolution, many levels greater than required, causing a seemingly never-end job that consumes large amounts of memory and disk resources.
The coverage object that provides the gridset is unaware of the actual number of levels in the tileset.
@pdavidc I would appreciate a sanity check on the changes while I move into functional testing.
Overriding findMaxZoomAuto to return the zoom level closest to the highest resolution coverage in the request.