9.3.1.13.1.2.1.10. GeoHealthCheck.plugins.probe.wcs

9.3.1.13.1.2.1.10.1. Classes

WcsGetCoverage

Get WCS coverage image using the OGC WCS GetCoverage v2.0.1 Operation.

9.3.1.13.1.2.1.10.2. Module Contents

class GeoHealthCheck.plugins.probe.wcs.WcsGetCoverage

Bases: GeoHealthCheck.probe.Probe

Get WCS coverage image using the OGC WCS GetCoverage v2.0.1 Operation.

NAME = 'WCS GetCoverage v2.0.1'

Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?

DESCRIPTION = Multiline-String
Show Value
"""
    Do WCS GetCoverage v2.0.1 request with user-specified parameters
    for single Layer.
    """

Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?

RESOURCE_TYPE = 'OGC:WCS'

Type of GHC Resource e.g. ‘OGC:WMS’, default not applicable.

REQUEST_METHOD = 'GET'

HTTP request method capitalized, GET (default) or POST.

REQUEST_TEMPLATE = '?SERVICE=WCS&VERSION=2.0.1&REQUEST=GetCoverage&COVERAGEID={layers}&FORMAT={format}&SUBSET=x({sub...

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.

PARAM_DEFS

Param defs

CHECKS_AVAIL

Checks for WCS GetCoverage Response available. Optionally override Check PARAM_DEFS using set_params e.g. with specific value or even name.

layer_count = 0
get_metadata(resource, version='2.0.1')

Get metadata, specific per Resource type. :param resource: :param version: :return: Metadata object

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