Package org.geotools.tile.impl
Class WebMercatorZoomLevel
-
public class WebMercatorZoomLevel extends ZoomLevel
The WebMercatorTileService is an abstract class that holds some of the tile service logic for Mercator-based tile services.- Since:
- 12
- Author:
- to.srwn, Ugo Taddei
-
-
Field Summary
-
Fields inherited from class ZoomLevel
maxTileNumber, maxTilePerColNumber, maxTilePerRowNumber
-
-
Constructor Summary
Constructors Constructor Description WebMercatorZoomLevel(int zoomLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateMaxTilePerColNumber(int zoomLevel)
The maximum tile-number: For example at zoom-level 2, the tilenames are in the following range: 2/0/0 - 2/3/3 (zoom-level/x/y): zoom-level/2^(zoom-level)-1/2^(zoom-level)-1)int
calculateMaxTilePerRowNumber(int zoomLevel)
-
Methods inherited from class ZoomLevel
calculateMaxTileNumber, equals, getMaxTileNumber, getMaxTilePerColNumber, getMaxTilePerRowNumber, getZoomLevel, hashCode, setZoomLevel
-
-
-
-
Method Detail
-
calculateMaxTilePerColNumber
public int calculateMaxTilePerColNumber(int zoomLevel)
The maximum tile-number: For example at zoom-level 2, the tilenames are in the following range: 2/0/0 - 2/3/3 (zoom-level/x/y): zoom-level/2^(zoom-level)-1/2^(zoom-level)-1)- Specified by:
calculateMaxTilePerColNumber
in classZoomLevel
-
calculateMaxTilePerRowNumber
public int calculateMaxTilePerRowNumber(int zoomLevel)
- Specified by:
calculateMaxTilePerRowNumber
in classZoomLevel
-
-