Chaining process – building your own task

You have seen how to send WPS request with the process builder, but what if you want to incorporate WPS capabilities in an external program?

In this recipe, you will create requests with XML and send them to GeoServer using the Python programming language and a shell utility cURL. Python is a programming language known for its simplicity and code readability, and is therefore very easy to use when creating small programs.

The cURL project is a library and a command-line tool that can easily be incorporated in simple shell scripts (it can also be used as a library by developers).

Both tools allow users to concentrate on what the program should do, rather than be distracted by a complex syntax.

Note

In this chapter, ...

Get GeoServer Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.