9.3.1.13.1.2.1.9. GeoHealthCheck.plugins.probe.tms
9.3.1.13.1.2.1.9.1. Classes
Probe for TMS main endpoint url |
|
Fetch TMS tile and check result |
|
Get TMS map image for each Layer using the TMS GetTile operation. |
9.3.1.13.1.2.1.9.2. Module Contents
- class GeoHealthCheck.plugins.probe.tms.TmsCaps
Bases:
GeoHealthCheck.probe.ProbeProbe for TMS main endpoint url
- NAME = 'TMS Capabilities'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = 'Perform TMS Capabilities Operation and check validity'
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- RESOURCE_TYPE = 'OSGeo:TMS'
Type of GHC Resource e.g. ‘OGC:WMS’, default not applicable.
- REQUEST_METHOD = 'GET'
HTTP request method capitalized, GET (default) or POST.
- CHECKS_AVAIL
Checks avail for all specific Caps checks. Optionally override Check.PARAM_DEFS using set_params e.g. with specific value or even name.
- class GeoHealthCheck.plugins.probe.tms.TmsGetTile
Bases:
GeoHealthCheck.probe.ProbeFetch TMS tile and check result
- NAME = 'TMS GetTile Single - get SINGLE Tile Image'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = Multiline-String
Show Value
"""Fetch SINGLE TMS-tile. NB extension should match last string of layer."""
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- RESOURCE_TYPE = 'OSGeo:TMS'
Type of GHC Resource e.g. ‘OGC:WMS’, default not applicable.
- REQUEST_METHOD = 'GET'
HTTP request method capitalized, GET (default) or POST.
- REQUEST_TEMPLATE = '/{layer}/{zoom}/{x}/{y}.{extension}'
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
Check for TMS GetTile
- layer_count = 0
- get_metadata(resource, version='1.0.0')
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
- class GeoHealthCheck.plugins.probe.tms.TmsGetTileAll
Bases:
TmsGetTileGet TMS map image for each Layer using the TMS GetTile operation.
- NAME = 'TMS GetTile All - get Tile Image for ALL Layers'
Short name of Plugin. TODO: i18n e.g. NAME_nl_NL ?
- DESCRIPTION = Multiline-String
Show Value
""" Do TMS GetTile request for each Layer. """
Longer description of Plugin. TODO: optional i18n e.g. DESCRIPTION_de_DE ?
- PARAM_DEFS
Param defs
- tms = None
- layers = None
- 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
- before_request()
Before request to service, overridden from base class
- perform_request()
Perform actual request to service, overridden from base class