Closed MichaelLangbein closed 5 years ago
In the case of shakyground, this is easily resolved: just request two outputs in the output-document, both with the same product-id, but different mime-types (one as 'application/wms', the other as 'text/xml'. The response will contain an entry with a WMS-GetMap-URL, and another entry with the shakemap.
Example in curl:
curl -X POST \
'http://rz-vm140.gfz-potsdam.de/wps/WebProcessingService?service=WPS&request=Execute&version=1.0.0&identifier=org.n52.gfz.riesgos.algorithm.impl.ShakygroundProcess' \
-H 'Accept: /' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 2164' \
-H 'Content-Type: text/xml' \
-H 'Host: rz-vm140.gfz-potsdam.de' \
-H 'Postman-Token: 589f55a0-0ede-4508-901c-17dbfb88d4e4,4fe35edb-388a-4e1a-8b51-0ae32832d2e6' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache' \
-d '
Usually, we want a wms-output for the frontend and a shakemap-output (or similar) for the next downstream-process.