gws.base.ows.client.provider

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

Module Contents

class gws.base.ows.client.provider.AuthorizationConfig(*args, **kwargs)

Bases: gws.Config

Service authorization. (added in 8.1)

password: str = ''

Password.

type: str

Authorization type (only “basic” is supported).

username: str = ''

User name.

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

Bases: gws.Config

OWS provider configuration.

alwaysXY: bool = False

Force XY orientation for lat/lon projections.

authorization: AuthorizationConfig | None

Service authorization. (added in 8.1)

capsCacheMaxAge: gws.Duration = '1d'

Max cache age for capabilities documents.

forceCrs: gws.CrsName | None

Use this CRS for requests.

maxRequests: int = 0

Max concurrent requests to this source.

operations: list[OperationConfig] | None

Override operations reported in capabilities.

url: gws.Url

Service url.

class gws.base.ows.client.provider.Object

Bases: gws.OwsProvider

OWS services Provider.

configure()

Configuration hook.

configure_operations(operations_from_caps)
get_capabilities()
get_operation(verb, method=None)
prepare_operation(op: gws.OwsOperation, method: gws.RequestMethod = None, params=None) gws.base.ows.client.request.Args
class gws.base.ows.client.provider.OperationConfig(*args, **kwargs)

Bases: gws.Config

Custom OWS operation.

formats: list[str] | None

Supported formats.

params: dict | None

Operation parameters. (added in 8.1)

postUrl: gws.Url | None

URL for POST requests.

url: gws.Url | None

URL for GET requests.

verb: gws.OwsVerb

OWS verb.