You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another option is to extend PyWPS to support an 'outputformat'
parameter like 'application/json' which would simply transform the XML
response into JSON. Or to be closer to the WPS spec allow one to
define/send process input which allows takes over the entire response
into JSON.
Having said this, we do this for pycsw as very simple step just before
the response is sent. Examples:
Example response:
https://github.com/geopython/pycsw/blob/master/tests/expected/suites_default_post_GetRecordById-json.xml
Code: https://github.com/geopython/pycsw/blob/master/pycsw/core/formats/fmt_json.py#L35