The pywps package consists of several sub-packages and classes:
This package contains classes necessary for input parsing OGC WPS requests, working with list of processes, executing them and redirecting OGC WPS responses back to client.
example how to use this module:
import sys
request="service=wps&request=getcapabilities"
wps = Pywps(pywps.METHOD_GET)
if wps.parserRequest(request):
response = wps.performRequest()
if response:
wps.printResponse(sys.stdout)
pywps.
METHOD_GET
¶String for HTTP GET method identification
pywps.
METHOD_POST
¶String for HTTP POST method identification
pywps.
OWS_NAMESPACE
¶Namespace of OGC OWS 1.1. standard
pywps.
WPS_NAMESPACE
¶Namespace of OGC OWS 1.0.0 standard
pywps.
XLINK_NAMESPACE
¶Namespace of OGC OWS 1.0.0 standard
pywps.
PYWPS_INSTALL_DIR
¶Directory, where Pywps is installed
pywps.
DEFAULT_LANG
¶Default language for WPS instance
pywps.
DEFAULT_VERSION
¶Default version of WPS instance
pywps.
config
¶Configuration file parser
pywps.
responsePrinter
¶ResponsePrinter
instance, which will print the resulting
response for you.
pywps.
Pywps
(method='GET', configFiles=None)¶This is main PyWPS Class, which parses the request, performs the desired operation and writes required response back.
Parameters: |
|
---|
method
¶METHOD_GET or METHOD_POST
parser
¶WPS request parser
inputs
¶Parsed inputs object
request
¶GetCapabilities, DescribeProcess or Execute (response) object
parser
GetCapabilities, DescribeProcess or Execute, POST or GET (parsing) object
languages
¶List of supported languages
versions
¶Default supported versions
logFile
¶File objects, where some logs are written to.
Note
Use
import logging
LOGGER = logging.getLogger(__name__)
LOGGER.debug("hallo world")
for any debugging information, you want to get