magpie.owsrequest

The OWSRequest is based on pywps code:

Module Contents

Classes

OWSParser

Initialize self. See help(type(self)) for accurate signature.

WPSGet

Basically a case-insensitive query string parser.

WPSPost

Initialize self. See help(type(self)) for accurate signature.

MultiFormatParser

Initialize self. See help(type(self)) for accurate signature.

Functions

ows_parser_factory(request: Request) → OWSParser

Retrieve the appropriate OWSParser parser using the Content-Type header.

lxml_strip_ns(tree)

magpie.owsrequest.LOGGER[source]
magpie.owsrequest.ows_parser_factory(request: Request) → OWSParser[source]

Retrieve the appropriate OWSParser parser using the Content-Type header.

If the Content-Type header is missing or ‘text/plain’, and the request has a body, try to parse the body as JSON and set the content-type to ‘application/json’.

‘application/x-www-form-urlencoded’ Content-Type header is also handled correctly.

Otherwise, use the GET/POST WPS parsers.

class magpie.owsrequest.OWSParser(request)[source]

Bases: object

Initialize self. See help(type(self)) for accurate signature.

parse(self, param_list)[source]
abstract _get_param_value(self, param)[source]
class magpie.owsrequest.WPSGet(request)[source]

Bases: magpie.owsrequest.OWSParser

Basically a case-insensitive query string parser.

Initialize self. See help(type(self)) for accurate signature.

_request_params(self)[source]
_get_param_value(self, param)[source]
magpie.owsrequest.lxml_strip_ns(tree)[source]
class magpie.owsrequest.WPSPost(request)[source]

Bases: magpie.owsrequest.OWSParser

Initialize self. See help(type(self)) for accurate signature.

_get_param_value(self, param)[source]
class magpie.owsrequest.MultiFormatParser(request)[source]

Bases: magpie.owsrequest.OWSParser

Initialize self. See help(type(self)) for accurate signature.

_get_param_value(self, param)[source]