magpie.owsrequest¶
The OWSRequest is based on pywps code:
- https://github.com/geopython/pywps/tree/pywps-3.2/pywps/Parser
- https://github.com/geopython/pywps/blob/master/pywps/app/WPSRequest.py
Module Contents¶
-
magpie.owsrequest.ows_parser_factory(request) → OWSParser[source]¶ Retrieve the appropriate
OWSParserparser using theContent-Typeheader.If the
Content-Typeheader 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-Typeheader is also handled correctly.Otherwise, use the GET/POST WPS parsers.
-
class
magpie.owsrequest.WPSGet(request)[source]¶ Bases:
magpie.owsrequest.OWSParserBasically a case-insensitive query string parser
-
class
magpie.owsrequest.WPSPost(request)[source]¶ Bases:
magpie.owsrequest.OWSParser
-
class
magpie.owsrequest.MultiFormatParser[source]¶ Bases:
magpie.owsrequest.OWSParser