[Feature] Allow other WPS references in wps_processes.yml
config file
#149
Labels
process/wps1
Issue related to WPS 1.x processes support
process/wps2
Issue related to WPS 2.x processes support
process/wps3
Issue related to WPS 3.x (REST-JSON) processes support
triage/feature
New requested feature.
Context
When
Weaver
starts (or using CLI with #106), functionweaver.processes.utils.register_wps_processes_from_config
is called to process filewps_processes.yml
(or equivalent). This file assumes WPS-1 processes sinceowslib.wps.WebProcessingService
is used to call the specified URLs. WPS-2 are explicitly skipped (why? maybe parsing problem?).After resolution of the processes from these URL, the corresponding WPS-REST and CWL definitions are generated following this call stack :
Since
_generate_process_with_cwl_from_reference
already handles the WPS-1/2 vs WPS-REST formats to retrieve the details, we could easily extendregister_wps_processes_from_config
so that it supports any WPS reference.Feature
Add support of the WPS-REST and WPS-2 references in
register_wps_processes_from_config
Improvements for
WebProcessingService
calls, we can skip the re-fetch of the HTTP request like so:The text was updated successfully, but these errors were encountered: