gws.common.ows.service

class gws.common.ows.service.Config(*args, **kwargs)[source]
meta = None

service metadata

root = ''

root layer uid

name = ''

service name

supportedCrs = None

supported CRS for this service

templates = None

service XML templates

updateSequence = None

service update sequence

withInspireMeta = False

use INSPIRE Metadata

class gws.common.ows.service.Request(*args, **kwargs)[source]
xml = None
xml_is_soap = False
class gws.common.ows.service.Projection(*args, **kwargs)[source]
class gws.common.ows.service.Name(*args, **kwargs)[source]
class gws.common.ows.service.FeatureSchemaAttribute(*args, **kwargs)[source]
class gws.common.ows.service.LayerCaps(*args, **kwargs)[source]
class gws.common.ows.service.FeatureCaps(*args, **kwargs)[source]
class gws.common.ows.service.FeatureCollection(*args, **kwargs)[source]
class gws.common.ows.service.Object[source]

OWS service interface.

configure()[source]
handle(req: gws.types.IRequest) → gws.types.HttpResponse[source]
error_response(err: Exception) → gws.types.HttpResponse[source]
class gws.common.ows.service.Base[source]

Baseclass for OWS services.

default_templates
default_metadata
default_name
configure()[source]
configure_metadata()[source]
handle(req) → gws.types.HttpResponse[source]
dispatch(rd: gws.common.ows.service.Request, request_param)[source]
request_version(rd: gws.common.ows.service.Request) → str[source]
error_response(err: Exception)[source]
template_response(rd: gws.common.ows.service.Request, ows_request: str, ows_format: str = None, context=None)[source]
render_template(rd: gws.common.ows.service.Request, ows_request: str, ows_format: str = None, context=None, format=None)[source]
enum_template_formats()[source]
xml_error_response(status, description) → gws.types.HttpResponse[source]
xml_response(content, status=200) → gws.types.HttpResponse[source]
layer_root_caps(rd: gws.common.ows.service.Request) → Optional[gws.common.ows.service.LayerCaps][source]

Return the root layer caps for a project.

layer_caps_list(rd: gws.common.ows.service.Request, layer_names=None) → List[gws.common.ows.service.LayerCaps][source]

Return a list of terminal layer caps (for WFS).

layer_caps_list_from_request(rd: gws.common.ows.service.Request, param_names, fallback_to_all=True) → List[gws.common.ows.service.LayerCaps][source]

Return a list of terminal layer caps matching request parameters.

feature_collection(features: List[gws.types.IFeature], rd: gws.common.ows.service.Request) → gws.common.ows.service.FeatureCollection[source]
url_for_project(project)[source]
render_map_bbox_from_layer_caps_list(lcs: List[gws.common.ows.service.LayerCaps], bounds: gws.types.Bounds, rd: gws.common.ows.service.Request) → gws.types.HttpResponse[source]
is_layer_enabled(layer)[source]