Package org.geotools.tile.impl
Class WebMercatorTileFactory
Object
TileFactory
WebMercatorTileFactory
- Direct Known Subclasses:
OSMTileFactory
The WebMercatorTileFactory is an abstract class that holds some of the tile calculation logic for Mercator-based tile
services.
OpenStreetMap Wiki http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Java
- Since:
- 12
- Author:
- Ugo Taddei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferencedEnvelopegetExtentFromTileName(TileIdentifier tileName) getZoomLevel(int zoomLevel, TileService wmtSource) Gets the ZoomLevel (object) for a given zoom level integer.static final doubletile2lat(double y, int z) static final doubletile2lon(double x, int z) Methods inherited from class TileFactory
create, findLowerNeighbour, findRightNeighbour, findTileAtCoordinate, normalizeDegreeValue
-
Constructor Details
-
WebMercatorTileFactory
public WebMercatorTileFactory()
-
-
Method Details
-
getZoomLevel
Description copied from class:TileFactoryGets the ZoomLevel (object) for a given zoom level integer.- Specified by:
getZoomLevelin classTileFactory- Parameters:
zoomLevel- the zoom levelwmtSource- the service- Returns:
- a zoom level
-
getExtentFromTileName
-
tile2lon
public static final double tile2lon(double x, int z) -
tile2lat
public static final double tile2lat(double y, int z)
-