Package org.geotools.tile.impl
Class WebMercatorTileFactory
- Object
-
- TileFactory
-
- WebMercatorTileFactory
-
- Direct Known Subclasses:
OSMTileFactory
public abstract class WebMercatorTileFactory extends TileFactory
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 Constructor Description WebMercatorTileFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferencedEnvelope
getExtentFromTileName(TileIdentifier tileName)
ZoomLevel
getZoomLevel(int zoomLevel, TileService wmtSource)
Gets the ZoomLevel (object) for a given zoom level integer.static double
tile2lat(double y, int z)
static double
tile2lon(double x, int z)
-
Methods inherited from class TileFactory
create, findLowerNeighbour, findRightNeighbour, findTileAtCoordinate, normalizeDegreeValue
-
-
-
-
Method Detail
-
getZoomLevel
public ZoomLevel getZoomLevel(int zoomLevel, TileService wmtSource)
Description copied from class:TileFactory
Gets the ZoomLevel (object) for a given zoom level integer.- Specified by:
getZoomLevel
in classTileFactory
- Parameters:
zoomLevel
- the zoom levelwmtSource
- the service- Returns:
- a zoom level
-
getExtentFromTileName
public static ReferencedEnvelope getExtentFromTileName(TileIdentifier tileName)
-
tile2lon
public static final double tile2lon(double x, int z)
-
tile2lat
public static final double tile2lat(double y, int z)
-
-