public class WMTSMapLayer extends GridReaderLayer
MapLayer
for interactive rendering usage.
TODO: expose a GetFeatureInfo that returns a feature collection
TODO: expose the list of named styles and allow choosing which style to use
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
params, reader
source
style
Constructor and Description |
---|
WMTSMapLayer(WebMapTileServer wmts,
Layer layer)
Builds a new WMTS map layer
|
Modifier and Type | Method and Description |
---|---|
ReferencedEnvelope |
getBounds()
The bounds of the Layer content (if known).
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the CRS used to make requests to the remote WMTS
|
GetTileRequest |
getLastGetMap()
Returns last GetMap request performed by this layer
|
String |
getRawTime() |
WMTSCoverageReader |
getReader()
Reader used for efficient access to raster content.
|
WebMapTileServer |
getWebMapServer()
Returns the
WebMapTileServer used by this layer |
boolean |
isNativelySupported(CoordinateReferenceSystem crs)
Returns true if the specified CRS can be used directly to perform WMTS requests.
|
void |
setRawTime(String rawTime) |
dispose, getParams, toFeatureCollection
getFeatureSource
getStyle, setStyle
addMapLayerListener, connectDataListener, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getQuery, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
public static final Logger LOGGER
public WMTSMapLayer(WebMapTileServer wmts, Layer layer)
wmts
- layer
- public WMTSCoverageReader getReader()
GridReaderLayer
getReader
in class GridReaderLayer
public ReferencedEnvelope getBounds()
Layer
The returned bounds are a ReferencedEnvelope using the same CoordinateReferenceSystem as the layers contents.
getBounds
in class GridReaderLayer
public WebMapTileServer getWebMapServer()
WebMapTileServer
used by this layerpublic CoordinateReferenceSystem getCoordinateReferenceSystem()
public GetTileRequest getLastGetMap()
public boolean isNativelySupported(CoordinateReferenceSystem crs)
Natively supported crs will provide the best rendering quality as no client side reprojection is necessary, the tiles coming from the WMTS server will be used as-is
crs
- public String getRawTime()
public void setRawTime(String rawTime)
Copyright © 1996–2019 Geotools. All rights reserved.