pywps.Wps.
Request
(wps, processes=None)¶WPS Request performing, and response formating
param wps: instance of Pywps
response
¶formated response output
wps
¶instance of pywps.PyWPS
templateFile
¶name of the template file (based on WPS version and request type)
processDir
¶temporary created directory, where the process is running
templateVersionDirectory
¶directory, where templates are stored (based on WPS version)
precompile
¶indicates, if the template shuld be precompiled for later usage or not
stdOutClosed
¶indicates, if we can write to standard output or not (usualy it is opend, it is closed only while the process is running in assynchronous mode)
templateProcessor
¶instance of pywps.Template.TemplateProcessor
processes
¶list of instances of :class:`pywps.Process.WPSProcess
processSources
¶list of sources of processes
contentType
¶Response content type, text/xml usually
checkProcess
(identifiers)¶check, if given identifiers are available as processes
cleanEnv
()¶Clean possible temporary files etc. created by this request type
Note
this method is empty and should be redefined by particula instances
formatMetadata
(process)¶Create structure suitble for template form process.metadata
Parameters: | process – pywps.Process |
---|---|
Returns: | hash with formated metadata |
getDataTypeReference
(inoutput)¶Returns data type reference according to W3C
Parameters: | inoutput – pywps.Process.InAndOutputs.Input
or pywps.Process.InAndOutputs.Output |
---|---|
Return type: | string |
Returns: | url to w3.org |
getProcess
(identifier)¶Get single processes based on it’s identifier
getProcesses
(identifiers=None)¶Get list of processes identified by list of identifiers
Parameters: | identifiers – List of identifiers. Either list of strings, or ‘all’ |
---|---|
Returns: | list of process instances or none |
initProcesses
(processes=None)¶Initialize list of processes
Parameters: | processes (list of pywps.Process.WPSProcess , list of
it’s instances, string with directory, where processes are
located, ...) – processes input processes. If none, environment
and default settings will be used. |
---|