gws.base.ows.server.core

Base data structures for OWS services.

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

Module Contents

exception gws.base.ows.server.core.Error

Bases: gws.Error

OWS server error.

class gws.base.ows.server.core.FeatureCollection(*args, **kwargs)

Bases: gws.Data

Feature collection, the result of a search request.

members: list[FeatureCollectionMember]

Collection members.

numMatched: int

Total number of matching features.

numReturned: int

Number of returned features.

timestamp: str

Time of the response, as an ISO string.

values: list

Property values, for value requests like GetPropertyValue.

class gws.base.ows.server.core.FeatureCollectionMember(*args, **kwargs)

Bases: gws.Data

A member of a feature collection.

feature: gws.Feature

Feature.

layer: gws.Layer | None

Layer the feature was found in.

layerCaps: LayerCaps | None

Caps of that layer, if it is part of the request.

gws.base.ows.server.core.IMAGE_VERBS

OWS verbs which are supposed to return images.

class gws.base.ows.server.core.LayerCaps(*args, **kwargs)

Bases: gws.Data

Layer wrapper object.

A LayerCaps object wraps a Layer object and provides additional data needed to represent a layer in an OWS service.

bounds: list[gws.Bounds]

Layer extent in each CRS supported by the service.

children: list[LayerCaps]

Direct children of a group.

featureName: str

Feature type name in the service, without a namespace prefix.

geometryName: str

Name of the geometry attribute.

hasLegend: bool

The layer has a legend.

isGroup: bool

The layer is a group.

isSearchable: bool

The layer can be searched.

layer: gws.Layer

Wrapped layer.

layerName: str

Layer name in the service.

leaves: list[LayerCaps]

All non-group descendants of a group.

maxScale: int

Max. scale denominator of the layer.

minScale: int

Min. scale denominator of the layer.

model: gws.Model | None

Model to read the layer features, if any.

title: str

Layer title.

xmlNamespace: gws.XmlNamespace | None

XML namespace of the feature type, if any.

class gws.base.ows.server.core.MetadataCollection(*args, **kwargs)

Bases: gws.Data

Metadata collection, the result of a catalog request.

members: list[gws.Metadata]

Metadata records.

nextRecord: int

Position of the next record, for paging.

numMatched: int

Total number of matching records.

numReturned: int

Number of returned records.

timestamp: str

Time of the response, as an ISO string.