gws.base.ows.server.templatelib

Helper functions for OWS service templates.

Source code: gws.base.ows.server.templatelib

Module Contents

class gws.base.ows.server.templatelib.TemplateArgs(*args, **kwargs)

Bases: gws.Data

Basic data object.

This object can be instantiated by passing one or or dict arguments and/or keyword args. All dicts keys and keywords become attributes of the object.

Accessing an undefined attribute returns None and no error is raised, unless the attribute name starts with an underscore.

featureCollection: gws.base.ows.server.core.FeatureCollection
layerCapsTree: gws.base.ows.server.LayerCapsTree
layerCapsList: list[gws.base.ows.server.LayerCaps]
project: gws.Project | None
request: gws.base.ows.server.Request
service: gws.OwsService
serviceUrl: str
url_for: Callable
version: str
gws.base.ows.server.templatelib.ows_wgs84_bounding_box(lc: gws.base.ows.server.LayerCaps)
gws.base.ows.server.templatelib.ows_service_identification(ta: TemplateArgs)
gws.base.ows.server.templatelib.ows_service_provider(ta: TemplateArgs)
gws.base.ows.server.templatelib.ows_service_url(ta: TemplateArgs, get=True, post=False)
gws.base.ows.server.templatelib.ows_value(value)
gws.base.ows.server.templatelib.online_resource(url)
gws.base.ows.server.templatelib.dcp_service_url(ta: TemplateArgs)
gws.base.ows.server.templatelib.legend_url(ta: TemplateArgs, lc: gws.base.ows.server.LayerCaps)
gws.base.ows.server.templatelib.ows_keywords(md: gws.Metadata)
gws.base.ows.server.templatelib.keywords(md: gws.Metadata)
gws.base.ows.server.templatelib.lon_lat_envelope(lc: gws.base.ows.server.LayerCaps)
gws.base.ows.server.templatelib.inspire_extended_capabilities(ta: TemplateArgs)
gws.base.ows.server.templatelib.coord_dms(n)
gws.base.ows.server.templatelib.coord_m(n)
gws.base.ows.server.templatelib.to_xml(ta: TemplateArgs, tag)