NASAWorldWind / WorldWindServerKit

The NASA WorldWind Server Kit (WWSK) is an open source Java project that assembles GeoServer for easy distribution and implementation.
92 stars 54 forks source link

Autodetect the max zoom level based on the highest resolution coverage #79

Closed emxsys closed 7 years ago

emxsys commented 7 years ago

Overriding findMaxZoomAuto to return the zoom level closest to the highest resolution coverage in the request.

emxsys commented 7 years ago

@pdavidc You're review is welcome, but not required to move forward.

emxsys commented 7 years ago

Problem

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.

Options/Ideas

emxsys commented 7 years ago

@pdavidc I would appreciate a sanity check on the changes while I move into functional testing.