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.
|
normalizeDegreeValuepublic 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 TileFactorylon - 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)
TileFactorygetZoomLevel in class TileFactoryzoomLevel - the zoom levelservice - the servicepublic Tile findRightNeighbour(Tile tile, TileService service)
TileFactoryfindRightNeighbour in class TileFactorytile - the reference tilepublic Tile findLowerNeighbour(Tile tile, TileService service)
TileFactoryfindLowerNeighbour in class TileFactorytile - the reference tilepublic static ReferencedEnvelope getExtentFromTileName(WMTSTileIdentifier tileIdentifier, TileService service)
tileIdentifier - Copyright © 1996–2019 Geotools. All rights reserved.