You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Using PyWPS as a WPS server instance allows you to easily transform about any Python into a WPS process. In this example we show you which code has to be added to your script so that it is recognized by PyWPS. 

The Process

To demonstrate the set up of a PyWPS process we show you how to convert a (very) simple piece of Python code into a PyWPS process. The process in the code box below uses two input values which are added together.

# Input
val_1 = 2
val_2 = 6


# Process
result = val_1 + val_2


# Output
print result

Defining PyWPS in- and outputs

Add the process to your WPS server

  • No labels