public class WMTSMapLayer extends GridReaderLayer
Layer
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 |
static DefaultParameterDescriptor<CoordinateReferenceSystem> |
SOURCE_CRS |
params, reader
source
style
Constructor and Description |
---|
WMTSMapLayer(WebMapTileServer wmts,
Layer layer)
Builds a new WMTS map layer
|
WMTSMapLayer(WebMapTileServer wmts,
Layer layer,
CoordinateReferenceSystem sourceCRS)
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 static final DefaultParameterDescriptor<CoordinateReferenceSystem> SOURCE_CRS
public WMTSMapLayer(WebMapTileServer wmts, Layer layer)
public WMTSMapLayer(WebMapTileServer wmts, Layer layer, CoordinateReferenceSystem sourceCRS)
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
public String getRawTime()
public void setRawTime(String rawTime)
Copyright © 1996–2022 Geotools. All rights reserved.