GeoHealthCheck.plugins.probe.wms
================================
.. py:module:: GeoHealthCheck.plugins.probe.wms
Classes
-------
.. autoapisummary::
GeoHealthCheck.plugins.probe.wms.WmsGetMapV1
GeoHealthCheck.plugins.probe.wms.WmsGetMapV1All
Module Contents
---------------
.. py:class:: WmsGetMapV1
Bases: :py:obj:`GeoHealthCheck.probe.Probe`
Get WMS map image using the OGC WMS GetMap v1.1.1 Operation
for single Layer.
.. py:attribute:: NAME
:value: 'WMS GetMap WMS v1.1.1. operation on SINGLE Layer'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
.. py:attribute:: DESCRIPTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Do WMS GetMap v1.1.1 request with user-specified parameters
for single Layer.
"""
.. raw:: html
Longer description of Plugin.
TODO: optional i18n e.g. DESCRIPTION_de_DE ?
.. py:attribute:: RESOURCE_TYPE
:value: 'OGC:WMS'
Type of GHC Resource e.g. 'OGC:WMS', default not applicable.
.. py:attribute:: REQUEST_METHOD
:value: 'GET'
HTTP request method capitalized, GET (default) or POST.
.. py:attribute:: REQUEST_TEMPLATE
:value: '?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS={layers}&SRS={srs}&BBOX={bbox[0]},{bbox[1]},{bb...
Template in standard Python `str.format(*args)`. The variables
like {service} and {version} within a template are filled from
actual values for parameters defined in PARAM_DEFS and substituted
from values or constant values specified by user in GUI and stored
in DB.
.. py:attribute:: PARAM_DEFS
Param defs
.. py:attribute:: CHECKS_AVAIL
Checks for WMS GetMap Response available.
Optionally override Check PARAM_DEFS using set_params
e.g. with specific `value` or even `name`.
.. py:attribute:: layer_count
:value: 0
.. py:method:: get_metadata(resource, version='1.1.1')
Get metadata, specific per Resource type.
:param resource:
:param version:
:return: Metadata object
.. py:method:: expand_params(resource)
Called after creation. Use to expand PARAM_DEFS, e.g. from Resource
metadata like WMS Capabilities. See e.g. WmsGetMapV1 class.
:param resource:
:return: None
.. py:class:: WmsGetMapV1All
Bases: :py:obj:`WmsGetMapV1`
Get WMS map image for each Layer using the WMS GetMap operation.
.. py:attribute:: NAME
:value: 'WMS GetMap WMS v1.1.1. operation on ALL Layers'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
.. py:attribute:: DESCRIPTION
:value: Multiline-String
.. raw:: html
Show Value
.. code-block:: python
"""
Do WMS GetMap v1.1.1 request for all Layers with
user-specified parameters.
"""
.. raw:: html
Longer description of Plugin.
TODO: optional i18n e.g. DESCRIPTION_de_DE ?
.. py:attribute:: PARAM_DEFS
Param defs
.. py:attribute:: wms
:value: None
.. py:attribute:: layers
:value: None
.. py:method:: expand_params(resource)
Called after creation. Use to expand PARAM_DEFS, e.g. from Resource
metadata like WMS Capabilities. See e.g. WmsGetMapV1 class.
:param resource:
:return: None
.. py:method:: before_request()
Before request to service, overridden from base class
.. py:method:: perform_request()
Perform actual request to service, overridden from base class