Package org.geotools.ows.wmts.client
Class WMTSTileFactory
Object
TileFactory
WMTSTileFactory
Implementation of TileFactory for WMTS
- Author:
- ian, Emanuele Tajariol (etj at geo-solutions dot it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWMTSTileconstrainToUpperLeftTile(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.create(TileIdentifier identifier, TileService service) Creates a new tile for the given position using a service.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.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.findTileAtCoordinate(double lon, double lat, ZoomLevel zoomLevel, TileService service) Return a tile with the proper row and column indexes.findUpperLeftTile(double lon, double lat, WMTSZoomLevel zoomLevel, WMTSTileService service) Find the first valid Upper Left tile for the current layer.static ReferencedEnvelopegetExtentFromTileName(WMTSTileIdentifier tileIdentifier, TileService service) static TileMatrixLimitsgetLimits(TileMatrixSetLink tmsl, TileMatrixSet tms, int z) WMTSZoomLevelgetZoomLevel(int zoomLevel, TileService service) Gets the ZoomLevel (object) for a given zoom level integer.Methods inherited from class TileFactory
normalizeDegreeValue
-
Constructor Details
-
WMTSTileFactory
public WMTSTileFactory()
-
-
Method Details
-
create
Description copied from class:TileFactoryCreates a new tile for the given position using a service.- Specified by:
createin classTileFactory- Returns:
-
findTileAtCoordinate
Return a tile with the proper row and column indexes.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.
- Specified by:
findTileAtCoordinatein classTileFactory- Parameters:
lon- the longitudelat- the latitudezoomLevel- the zoom levelservice- the service- Returns:
- a tile
-
findUpperLeftTile
public Tile findUpperLeftTile(double lon, double lat, WMTSZoomLevel zoomLevel, WMTSTileService service) Find the first valid Upper Left tile for the current layer. -
getLimits
-
constrainToUpperLeftTile
public 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. -
getZoomLevel
Description copied from class:TileFactoryGets the ZoomLevel (object) for a given zoom level integer.- Specified by:
getZoomLevelin classTileFactory- Parameters:
zoomLevel- the zoom levelservice- the service- Returns:
- a zoom level
-
findRightNeighbour
Description copied from class:TileFactoryFinds the tile for a service at the given position and zoom level, which is immediately to the right of the passed tile.- Specified by:
findRightNeighbourin classTileFactory- Parameters:
tile- the reference tile
-
findLowerNeighbour
Description copied from class:TileFactoryFinds the tile for a service at the given position and zoom level, which is immediately below the the passed tile.- Specified by:
findLowerNeighbourin classTileFactory- Parameters:
tile- the reference tile
-
getExtentFromTileName
public static ReferencedEnvelope getExtentFromTileName(WMTSTileIdentifier tileIdentifier, TileService service)
-