Package org.geotools.ows.wmts.map
Class WMTSMapLayer
Object
Layer
StyleLayer
RasterLayer
GridReaderLayer
WMTSMapLayer
Wraps a WMTS layer into a
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
- Author:
- Ian Turton, Emanuele Tajariol (etj at geo-solutions dot it)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Logger
static final DefaultParameterDescriptor<CoordinateReferenceSystem>
Fields inherited from class GridReaderLayer
params, reader
Fields inherited from class RasterLayer
source
Fields inherited from class StyleLayer
style
-
Constructor Summary
ConstructorsConstructorDescriptionWMTSMapLayer
(WebMapTileServer wmts, Layer layer) Builds a new WMTS map layerWMTSMapLayer
(WebMapTileServer wmts, Layer layer, CoordinateReferenceSystem sourceCRS) Builds a new WMTS map layer -
Method Summary
Modifier and TypeMethodDescriptionThe bounds of the Layer content (if known).Returns the CRS used to make requests to the remote WMTSReader used for efficient access to raster content.boolean
Returns true if the specified CRS can be used directly to perform WMTS requests.void
setRawTime
(String rawTime) Set request Time the way the server wants itMethods inherited from class GridReaderLayer
dispose, getParams, toFeatureCollection
Methods inherited from class RasterLayer
getFeatureSource
Methods inherited from class StyleLayer
getStyle, setStyle
Methods inherited from class Layer
addMapLayerListener, connectDataListener, finalize, fireMapLayerListenerLayerChanged, fireMapLayerListenerLayerDeselected, fireMapLayerListenerLayerHidden, fireMapLayerListenerLayerPreDispose, fireMapLayerListenerLayerSelected, fireMapLayerListenerLayerShown, getQuery, getTitle, getUserData, isSelected, isVisible, preDispose, removeMapLayerListener, setSelected, setTitle, setVisible, toString
-
Field Details
-
LOGGER
-
SOURCE_CRS
-
-
Constructor Details
-
WMTSMapLayer
Builds a new WMTS map layer -
WMTSMapLayer
Builds a new WMTS map layer
-
-
Method Details
-
getReader
Description copied from class:GridReaderLayer
Reader used for efficient access to raster content.- Overrides:
getReader
in classGridReaderLayer
-
getBounds
Description copied from class:Layer
The bounds of the Layer content (if known). The bounds can be used to determine if any of the layers content is "on screen" when rendering the map; however often it is expensive to calculate a layers bounds up front so we are allowing this value to be optional.The returned bounds are a ReferencedEnvelope using the same CoordinateReferenceSystem as the layers contents.
- Overrides:
getBounds
in classGridReaderLayer
- Returns:
- layer bounds, null if unknown
-
getCoordinateReferenceSystem
Returns the CRS used to make requests to the remote WMTS -
isNativelySupported
Returns true if the specified CRS can be used directly to perform WMTS requests.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
-
getRawTime
-
setRawTime
Set request Time the way the server wants it
-