eoxserver.services.ows.wps package

Subpackages

Submodules

eoxserver.services.ows.wps.exceptions module

exception eoxserver.services.ows.wps.exceptions.ExecuteError(message='', locator='process.execute()')

Bases: eoxserver.services.ows.wps.exceptions.NoApplicableCode

exception eoxserver.services.ows.wps.exceptions.FileSizeExceeded(message, locator)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

exception eoxserver.services.ows.wps.exceptions.InvalidInputError(input_id)

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.InvalidInputReferenceError(input_id, message='')

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.InvalidInputValueError(input_id, message='')

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.InvalidOutputDefError(output_id, message='')

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.InvalidOutputError(output_id)

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.InvalidOutputValueError(output_id, message='')

Bases: eoxserver.services.ows.wps.exceptions.NoApplicableCode

exception eoxserver.services.ows.wps.exceptions.InvalidParameterValue(message, locator)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

exception eoxserver.services.ows.wps.exceptions.MissingParameterValue(message, locator)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

exception eoxserver.services.ows.wps.exceptions.MissingRequiredInputError(input_id)

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.NoApplicableCode(message, locator=None)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

http_status_code = 500
exception eoxserver.services.ows.wps.exceptions.NoSuchProcessError(identifier)

Bases: eoxserver.services.ows.wps.exceptions.InvalidParameterValue

exception eoxserver.services.ows.wps.exceptions.NotEnoughStorage(message)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

http_status_code = 507
exception eoxserver.services.ows.wps.exceptions.OWS10Exception(code, locator, message)

Bases: Exception

Base OWS 1.0 exception of the WPS 1.0.0 exceptions

http_status_code = 400
exception eoxserver.services.ows.wps.exceptions.ServerBusy(message)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

http_status_code = 503
exception eoxserver.services.ows.wps.exceptions.StorageNotSupported(message)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

exception eoxserver.services.ows.wps.exceptions.VersionNegotiationFailed(message, locator)

Bases: eoxserver.services.ows.wps.exceptions.OWS10Exception

eoxserver.services.ows.wps.interfaces module

class eoxserver.services.ows.wps.interfaces.AsyncBackendInterface

Bases: object

Interface class for an asynchronous WPS back-end. NOTE: Only one asynchronous back-end at time is allowed to be configured.

cancel(job_id, **kwargs)

Cancel the job execution.

execute(process, raw_inputs, resp_form, extra_parts=None, job_id=None, version='1.0.0', **kwargs)

Execute process asynchronously. The request is defined by the process’s identifier process_id, raw_inputs (before the decoding and resolution of the references), and the resp_form (holding the outputs’ parameters). The version of the WPS standard to be used. Optionally, the user defined job_id can be passed. If the job_id cannot be used the execute shall fail.

The extra_parts should contain a dictionary of named request parts should the request contain multi-part/related CID references.

On success, the method returns the job_id assigned to the executed job.

get_response_url(job_id)

Get URL of the execute response for the given job id

get_status(job_id)

Get status of a job. Allowed responses and their meanings are: ACCEPTED - job scheduled for execution STARTED - job in progress PAUSED - job is stopped and it can be resumed CANCELLED - job was terminated by the user FAILED - job ended with an error SUCCEEDED - job ended successfully

pause(job_id, **kwargs)

Pause the job execution.

purge(job_id, **kwargs)

Purge the job from the system by removing all the resources occupied by the job.

resume(job_id, **kwargs)

Resume the job execution.

supported_versions

A list of versions of the WPS standard supported by the back-end.

class eoxserver.services.ows.wps.interfaces.ProcessInterface

Bases: object

Interface class for processes offered, described and executed by the WPS.

asynchronous

Optional boolean flag indicating whether the process can be executed asynchronously. If missing False is assumed.

description

A human-readable detailed description of the process. Optional. (Content of the the abstract in the WPS process description.)

execute(**kwargs)

The main execution function for the process. The kwargs are the parsed input inputs (using the keys as defined by the inputs) and the Complex Data format requests (using the keys as defined by the outputs). The method is expected to return a dictionary of the output values (using the keys as defined by the outputs). In case of only one output item defined by the outputs, one output value is allowed to be returned directly.

identifier

An identifier (URI) of the process. Optional. When omitted it defaults to the process’ class-name.

inputs

A dict mapping the inputs’ identifiers to their respective types. The type can be either one of the supported native python types (automatically converted to a LiteralData object) or an instance of one of the data-specification classes (LiteralData, BoundingBoxData, or ComplexData). Mandatory.

metadata

A dict of title/URL meta-data pairs associated with the process. Optional.

outputs

A dict mapping the outputs’ identifiers to their respective types. The type can be either one of the supported native python types (automatically converted to a LiteralData object) or an instance of one of the data-specification classes (LiteralData, BoundingBoxData, or ComplexData). Mandatory.

profiles

A iterable of URNs of WPS application profiles this process adheres to. Optional.

retention_period

This optional property (datetime.timedelta) indicates the minimum time the process results shall be retained after the completion. If omitted the default server retention policy is applied.

synchronous

Optional boolean flag indicating whether the process can be executed synchronously. If missing True is assumed.

title

A human-readable title of the process. Optional. When omitted it defaults to the process identifier.

version

The version of the process, if applicable. Optional. When omitted it defaults to ‘1.0.0’.

wsdl

A URL of WSDL document describing this process. Optional.

eoxserver.services.ows.wps.test_allowed_values module

class eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

Bases: object

test()
class eoxserver.services.ows.wps.test_allowed_values.TestAllowedAny(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDate(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDate2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDateTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDateTime2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDuration(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumDuration2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumFloat(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumFloat2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumFloat3(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumInt(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumInt2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumString(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumString2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumString3(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedEnumTime2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeCollectionFloat(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDateClosed(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDateClosedOpen(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDateOpen(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDateOpenClosed(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDateTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrDate(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrDateTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrDuration(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrFloat(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrInt(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDiscrTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeDuration(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloat(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloat2(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloat3(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloatClosed(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloatClosedOpen(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloatOpen(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeFloatOpenClosed(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeInt(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeIntClosed(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeUnboundMax(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_allowed_values.TestAllowedRangeUnboundMin(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_allowed_values.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

eoxserver.services.ows.wps.test_data_types module

class eoxserver.services.ows.wps.test_data_types.BaseTestMixin

Bases: object

testEncodeFail()
testEncodeOK()
testGeneral()
testParseFail()
testParseOK()
class eoxserver.services.ows.wps.test_data_types.TestDataTypeBool(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeCRS(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeDate(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeDateTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin, eoxserver.services.ows.wps.test_data_types.TimeZoneTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeDateTimeTZAware(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin, eoxserver.services.ows.wps.test_data_types.TimeZoneTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeDateTimeTZAwareWithTZConversion(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin, eoxserver.services.ows.wps.test_data_types.TimeZoneTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeDuration(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeFloat(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeInt(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeString(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TestDataTypeTime(methodName='runTest')

Bases: unittest.case.TestCase, eoxserver.services.ows.wps.test_data_types.BaseTestMixin

setUp()

Hook method for setting up the test fixture before exercising it.

class eoxserver.services.ows.wps.test_data_types.TimeZoneTestMixin

Bases: object

testParseTimeZone()

Module contents