gws.base.ows.server.layer_caps

Utilities to deal with LayerCaps objects.

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

Module Contents

gws.base.ows.server.layer_caps.feature_name_matches(lc: gws.base.ows.server.core.LayerCaps, name: str) bool

Check if the feature name in the caps matches the given name.

gws.base.ows.server.layer_caps.for_layer(layer: gws.Layer, user: gws.User, service: gws.OwsService | None = None) gws.base.ows.server.core.LayerCaps

Create LayerCaps for a layer.

gws.base.ows.server.layer_caps.layer_name_matches(lc: gws.base.ows.server.core.LayerCaps, name: str) bool

Check if the layer name in the caps matches the given name.

gws.base.ows.server.layer_caps.xml_schema(lcs: list[gws.base.ows.server.core.LayerCaps], user: gws.User) gws.XmlElement

Create an ad-hoc XML Schema for a list of LayerCaps.