Package org.geotools.ows.wmts.map
Class WMTSMapLayer
- Object
-
- Layer
-
- StyleLayer
-
- RasterLayer
-
- GridReaderLayer
-
- WMTSMapLayer
-
public class WMTSMapLayer extends GridReaderLayer
Wraps a WMTS layer into aLayer
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
Fields Modifier and Type Field Description static Logger
LOGGER
static DefaultParameterDescriptor<CoordinateReferenceSystem>
SOURCE_CRS
-
Fields inherited from class GridReaderLayer
params, reader
-
Fields inherited from class RasterLayer
source
-
Fields inherited from class StyleLayer
style
-
-
Constructor Summary
Constructors Constructor Description WMTSMapLayer(WebMapTileServer wmts, Layer layer)
Builds a new WMTS map layerWMTSMapLayer(WebMapTileServer wmts, Layer layer, CoordinateReferenceSystem sourceCRS)
Builds a new WMTS map layer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencedEnvelope
getBounds()
The bounds of the Layer content (if known).CoordinateReferenceSystem
getCoordinateReferenceSystem()
Returns the CRS used to make requests to the remote WMTSString
getRawTime()
WMTSCoverageReader
getReader()
Reader used for efficient access to raster content.boolean
isNativelySupported(CoordinateReferenceSystem crs)
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 it-
Methods 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 Detail
-
LOGGER
public static final Logger LOGGER
-
SOURCE_CRS
public static final DefaultParameterDescriptor<CoordinateReferenceSystem> SOURCE_CRS
-
-
Constructor Detail
-
WMTSMapLayer
public WMTSMapLayer(WebMapTileServer wmts, Layer layer)
Builds a new WMTS map layer
-
WMTSMapLayer
public WMTSMapLayer(WebMapTileServer wmts, Layer layer, CoordinateReferenceSystem sourceCRS)
Builds a new WMTS map layer
-
-
Method Detail
-
getReader
public WMTSCoverageReader getReader()
Description copied from class:GridReaderLayer
Reader used for efficient access to raster content.- Overrides:
getReader
in classGridReaderLayer
-
getBounds
public ReferencedEnvelope 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
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Returns the CRS used to make requests to the remote WMTS
-
isNativelySupported
public boolean isNativelySupported(CoordinateReferenceSystem crs)
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
public String getRawTime()
-
setRawTime
public void setRawTime(String rawTime)
Set request Time the way the server wants it
-
-