Skip to content

Commit

Permalink
Merge pull request #88 from bird-house/add-valuesref-example
Browse files Browse the repository at this point in the history
added ValuesReference example
  • Loading branch information
cehbrecht authored Apr 17, 2019
2 parents 75d9480 + 3bfb7c3 commit 120947d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
13 changes: 12 additions & 1 deletion docs/source/processes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,23 @@ ShowError
:docstring:
:skiplines: 1

SimpleDryRun
------------

.. autoprocess:: emu.processes.wps_dry_run.SimpleDryRun
:docstring:
:skiplines: 1

MultipleOutputs
---------------

.. autoprocess:: emu.processes.wps_multiple_outputs.MultipleOutputs
:docstring:
:skiplines: 1

InOut
-----


.. autoprocess:: emu.processes.wps_inout.InOut
:docstring:
:skiplines: 1
16 changes: 8 additions & 8 deletions emu/processes/wps_inout.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,20 @@ def __init__(self):
abstract='Enter any value.',
metadata=[
Metadata('PyWPS Docs', 'https://pywps.readthedocs.io/en/master/api.html#pywps.inout.literaltypes.AnyValue'), # noqa
Metadata('Not implemented yet')],
data_type='string',
allowed_values=[AnyValue()],
],
allowed_values=AnyValue(),
default='any value',
mode=MODE.NONE,),
mode=MODE.SIMPLE,),
LiteralInput('ref_value', 'Referenced Value',
abstract='Choose a referenced value',
metadata=[
Metadata('PyWPS Docs', 'https://pywps.readthedocs.io/en/master/_modules/pywps/inout/literaltypes.html'), # noqa
Metadata('Not implemented yet')],
],
data_type='string',
allowed_values=[ValuesReference()],
default='a reference value',
mode=MODE.NONE,),
allowed_values=ValuesReference(
reference="https://en.wikipedia.org/w/api.php?action=opensearch&search=scotland&format=json"), # noqa
default='Scotland',
mode=MODE.SIMPLE,),
# TODO: bbox is not supported yet by owslib
# BoundingBoxInput('bbox', 'Bounding Box',
# abstract='Bounding Box with EPSG:4326 and EPSG:3035.',
Expand Down

0 comments on commit 120947d

Please sign in to comment.