gws.base.ows.client.operation

OWS operations of remote services.

Source code: gws.base.ows.client.operation

Module Contents

class gws.base.ows.client.operation.Config(*args, **kwargs)

Bases: gws.Config

OWS operation that overrides or adds to those in the service capabilities.

formats: list[str] | None

MIME types supported by the operation.

params: dict | None

Extra parameters added to GET requests for this operation.

postUrl: gws.Url | None

URL for POST requests.

url: gws.Url | None

URL for GET requests.

verb: gws.OwsVerb

OWS request type.

gws.base.ows.client.operation.create(verb: gws.OwsVerb, op_from_caps: gws.OwsOperation | None = None, cfgs: list[Config] | None = None) → gws.OwsOperation

Create an operation from the capabilities and the configuration.

All fields are initialized. Attributes of the operations with the same verb in the configuration replace those of op_from_caps. The default MIME type is the first configured one, if formats are configured, otherwise selected from the supported ones.

Parameters:
  • verb – Request type.

  • op_from_caps – Operation read from the capabilities, with MIME types as spelled by the service.

  • cfgs – Operation configurations.

Returns:

The operation.