eoxserver.services.ows.wps.v10.encoders package¶
Submodules¶
eoxserver.services.ows.wps.v10.encoders.base module¶
- class eoxserver.services.ows.wps.v10.encoders.base.WPS10BaseXMLEncoder¶
Bases:
XMLEncoder
Base class of the WPS 1.0 XML response encoders.
- content_type = 'application/xml; charset=utf-8'¶
- get_schema_locations()¶
Interface method. Returns a dict mapping namespace URIs to a network locations.
- serialize(tree, **kwargs)¶
Serialize a XML tree to the pair (tuple) of the XML string and the content type.
eoxserver.services.ows.wps.v10.encoders.capabilities module¶
- class eoxserver.services.ows.wps.v10.encoders.capabilities.WPS10CapabilitiesXMLEncoder¶
Bases:
WPS10BaseXMLEncoder
WPS 1.0 Capabilities XML response encoder.
- static encode_capabilities(processes)¶
Encode Capabilities XML document.
eoxserver.services.ows.wps.v10.encoders.execute_response module¶
- class eoxserver.services.ows.wps.v10.encoders.execute_response.WPS10ExecuteResponseXMLEncoder(process, resp_form, raw_inputs, inputs=None, status_location=None)¶
Bases:
WPS10BaseXMLEncoder
WPS 1.0 ExecuteResponse XML response encoder.
- encode_accepted()¶
Encode ProcessAccepted execute response.
- encode_failed(exception)¶
Encode ProcessFailed execute response.
- encode_paused(progress=0)¶
Encode ProcessPaused execute response.
- encode_response(results)¶
Encode ProcessSucceeded execute response including the output data.
- encode_started(progress=0, message=None)¶
Encode ProcessStarted execute response.
eoxserver.services.ows.wps.v10.encoders.execute_response_raw module¶
- class eoxserver.services.ows.wps.v10.encoders.execute_response_raw.ResultAlt(buf, content_type=None, filename=None, identifier=None, close=False, headers=None)¶
Bases:
ResultItem
Alternative implementation of the result buffer. The object can be initialized with a byte-string, sequence or generator of byte-strings, or seekable file(-like) object.
- chunked(chunksize)¶
Returns a chunk of the data, which has at most
chunksize
bytes.
- property data¶
Returns the “raw” data, usually as a string, buffer, memoryview, etc.
- property data_file¶
Returns the data as a Python file-like object.
- class eoxserver.services.ows.wps.v10.encoders.execute_response_raw.WPS10ExecuteResponseRawEncoder(resp_form)¶
Bases:
object
WPS 1.0 raw output Execute response encoder.
- encode_response(results)¶
Pack the raw execute response.
- static serialize(result_items, **kwargs)¶
Serialize the result items to the HTTP response object.
eoxserver.services.ows.wps.v10.encoders.parameters module¶
- eoxserver.services.ows.wps.v10.encoders.parameters.encode_input_descr(prm)¶
Encode process description Input element.
- eoxserver.services.ows.wps.v10.encoders.parameters.encode_input_exec(prm)¶
Encode common part of the execute response Input (data) element.
- eoxserver.services.ows.wps.v10.encoders.parameters.encode_output_def(outdef)¶
Encode execute response Output (definition) element.
- eoxserver.services.ows.wps.v10.encoders.parameters.encode_output_descr(prm)¶
Encode process description Output element.
- eoxserver.services.ows.wps.v10.encoders.parameters.encode_output_exec(prm)¶
Encode common part of the execute response Output (data) element.
eoxserver.services.ows.wps.v10.encoders.process_description module¶
- class eoxserver.services.ows.wps.v10.encoders.process_description.WPS10ProcessDescriptionsXMLEncoder¶
Bases:
WPS10BaseXMLEncoder
WPS 1.0 ProcessDescriptions XML response encoder.
- static encode_process_descriptions(processes)¶
Encode the ProcessDescriptions XML document.
- eoxserver.services.ows.wps.v10.encoders.process_description.encode_process_brief(process)¶
Encode a brief process description (Process element) of the Capabilities XML document.
- eoxserver.services.ows.wps.v10.encoders.process_description.encode_process_full(process)¶
Encode a full process description (ProcessDescription element) of the ProcessDescriptions XML document.