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.ConfigOWS operation that overrides or adds to those in the service capabilities.
- params: dict | None¶
Extra parameters added to GET requests for this operation.
- 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, ifformatsare 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.