cartopy.io.ogc_clients.WMTSRasterSource¶
- class cartopy.io.ogc_clients.WMTSRasterSource(wmts, layer_name, gettile_extra_kwargs=None)[source]¶
A WMTS imagery retriever which can be added to a map.
Uses tile caching for fast repeated map retrievals.
Note
Requires owslib and Pillow to work.
- __init__(wmts, layer_name, gettile_extra_kwargs=None)[source]¶
- Parameters
wmts – The URL of the WMTS, or an owslib.wmts.WebMapTileService instance.
layer_name – The name of the layer to use.
gettile_extra_kwargs (dict, optional) – Extra keywords (e.g. time) to pass through to the service’s gettile method.
Methods
__init__
(wmts, layer_name[, ...])- param wmts
The URL of the WMTS, or an owslib.wmts.WebMapTileService instance.
fetch_raster
(projection, extent, ...)Return a sequence of images with extents given some constraining information.
validate_projection
(projection)Raise an error if this raster source cannot provide images in the specified projection.
Attributes
wmts
The OWSLib WebMapTileService instance.
layer
The layer to fetch.