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 Loggerstatic final DefaultParameterDescriptor<CoordinateReferenceSystem>Fields inherited from class GridReaderLayer
params, readerFields inherited from class RasterLayer
sourceFields 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.booleanReturns true if the specified CRS can be used directly to perform WMTS requests.voidsetRawTime(String rawTime) Set request Time the way the server wants itMethods inherited from class GridReaderLayer
dispose, getParams, toFeatureCollectionMethods inherited from class RasterLayer
getFeatureSourceMethods inherited from class StyleLayer
getStyle, setStyleMethods 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:GridReaderLayerReader used for efficient access to raster content.- Overrides:
getReaderin classGridReaderLayer
-
getBounds
Description copied from class:LayerThe 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:
getBoundsin 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
-