public class OSMTileIdentifier extends TileIdentifier
Constructor and Description |
---|
OSMTileIdentifier(int x,
int y,
ZoomLevel zoomLevel,
String serviceName) |
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Gets the code of a tile.
|
String |
getId()
Gets the id of a tile, which can be used for caching purposes.
|
TileIdentifier |
getLowerNeighbour() |
TileIdentifier |
getRightNeighbour() |
arithmeticMod, equals, getServiceName, getX, getY, getZ, getZoomLevel, hashCode, toString
public String getId()
TileIdentifier
The id is a file-friendly name (that is, should contains no special characters such as ".", "/", etc. The id should be build from the code (which also uniquely identifies a tile, but, in some service implementation may contain file-unfriendly characters (e.g. OpenStreetMap: 5/16/10.png).
When building an id, you should use the service name as a prefix (e.g. for OpenStreetMap: "Mapnik", "CycleMap"; Bing Maps: "Road", "Hybrid"; etc) and suffix the id with a file-friendly string (e.g. OpenStreetMap: "Mapnik_X_Y_Z").
getId
in class TileIdentifier
public String getCode()
TileIdentifier
The id is a string which uniquely identifies a tile. In some service implementations this is a quadkey (e.g. Bing Maps: "03123") or the fragment of the tile image (e.g. OpenStreetMap: 5/16/10.png, for Z/X/Y.png).
getCode
in class TileIdentifier
public TileIdentifier getRightNeighbour()
getRightNeighbour
in class TileIdentifier
public TileIdentifier getLowerNeighbour()
getLowerNeighbour
in class TileIdentifier
Copyright © 1996–2019 Geotools. All rights reserved.