Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Example process extensions 52N 4.0.0 Beta and WPS2.0 #281

Open
gabrilator opened this issue Oct 16, 2019 · 3 comments
Open

Example process extensions 52N 4.0.0 Beta and WPS2.0 #281

gabrilator opened this issue Oct 16, 2019 · 3 comments

Comments

@gabrilator
Copy link

Hi!
I would like to add custom process extensions to the 52N 4.0.0 Beta but I can't find any example on the source code and the guides on the website are made for WPS 1.0.0. Are there any examples out there, or something I could base myself on in order to write my own extensions?

Thank you!

@bpross-52n
Copy link
Member

Hi, you could use this as an example for a custom process extension:

https://github.com/bpross-52n/wps-process-repository-skeleton

@gabrilator
Copy link
Author

Thanks bpross, and good job!
One more thing, I see that the project description is taken from GenericExampleAlgorithm.xml, which seems to be in wps 1.0.0. Is there any example of an xml with all the new fields of wps 2.0, such as ProcessOferings, ResponseForm... and an algorithm that reads from these ?

Thank you!

@bpross-52n
Copy link
Member

Hey, sorry, I was travelling. The short answer is: No, there is no example using a WPS 2.0 process description.
The reason behind is that there are several ways to implement an algorithm in the 52n WPS.
One way is to create a process description XML alongside to the Java class. This can be useful if you want to have more fine grained control over the process description, e.g. limit the data formats. The algorithm will be also available using the WPS 2.0 interface. The concepts behind WPS 1.0 and 2.0 are very similar.

Other ways to implement algorithms are extending certain other classes, e.g. AbstractAnnotatedAlgorithm or AbstractSelfDescribingAlgorithm, that in turn extend AbstractAlgorithm but offer more functionalities. The process description in version 1.0 and 2.0 will be created automatically using these classes.

Hope this helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants