public class WMTSTileFactory extends TileFactory
Constructor and Description |
---|
WMTSTileFactory() |
Modifier and Type | Method and Description |
---|---|
WMTSTile |
constrainToUpperLeftTile(Tile matrixTile,
WMTSZoomLevel zl,
WMTSTileService service)
If the tile is outside the limits, take a valid one which can be used to start a loop on.
|
Tile |
findLowerNeighbour(Tile tile,
TileService service)
Finds the tile for a service at the given position and zoom level, which is immediately below
the the passed tile.
|
Tile |
findRightNeighbour(Tile tile,
TileService service)
Finds the tile for a service at the given position and zoom level, which is immediately to
the right of the passed tile.
|
Tile |
findTileAtCoordinate(double lon,
double lat,
ZoomLevel zoomLevel,
TileService service)
Return a tile with the proper row and column indexes.
|
Tile |
findUpperLeftTile(double lon,
double lat,
WMTSZoomLevel zoomLevel,
WMTSTileService service)
Find the first valid Upper Left tile for the current layer.
|
static ReferencedEnvelope |
getExtentFromTileName(WMTSTileIdentifier tileIdentifier,
TileService service) |
static TileMatrixLimits |
getLimits(TileMatrixSetLink tmsl,
TileMatrixSet tms,
int z) |
WMTSZoomLevel |
getZoomLevel(int zoomLevel,
TileService service)
Gets the ZoomLevel (object) for a given zoom level integer.
|
normalizeDegreeValue
public Tile findTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel, TileService service)
Please notice that the tile indexes are purely computed on the zoom level details, but the MatrixLimits in a given layer may make the row/col invalid for that layer.
findTileAtCoordinate
in class TileFactory
lon
- the longitudelat
- the latitudezoomLevel
- the zoom levelservice
- the servicepublic Tile findUpperLeftTile(double lon, double lat, WMTSZoomLevel zoomLevel, WMTSTileService service)
public static TileMatrixLimits getLimits(TileMatrixSetLink tmsl, TileMatrixSet tms, int z)
public WMTSTile constrainToUpperLeftTile(Tile matrixTile, WMTSZoomLevel zl, WMTSTileService service)
public WMTSZoomLevel getZoomLevel(int zoomLevel, TileService service)
TileFactory
getZoomLevel
in class TileFactory
zoomLevel
- the zoom levelservice
- the servicepublic Tile findRightNeighbour(Tile tile, TileService service)
TileFactory
findRightNeighbour
in class TileFactory
tile
- the reference tilepublic Tile findLowerNeighbour(Tile tile, TileService service)
TileFactory
findLowerNeighbour
in class TileFactory
tile
- the reference tilepublic static ReferencedEnvelope getExtentFromTileName(WMTSTileIdentifier tileIdentifier, TileService service)
tileIdentifier
- Copyright © 1996–2019 Geotools. All rights reserved.