Closed ridoo closed 5 months ago
Check for alternate WPS download: Download is triggered async and the user will not get any notice when a download is ready/prepared for actual download. After WPS download request, GeoNode sends GetExecutionStatus
requests until execution status is successful:
<?xml version="1.0" encoding="UTF-8"?>
<wps:ExecuteResponse xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS"
serviceInstance="http://172.18.0.1/geoserver/ows?"
statusLocation="http://172.18.0.1/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionStatus&executionId=5a4ff4af-6319-4aad-be4a-f0dce932a45f"
version="1.0.0">
<wps:Process wps:processVersion="1.0.0">
<ows:Identifier>gs:Download</ows:Identifier>
<ows:Title>Enterprise Download Process</ows:Title>
<ows:Abstract>Downloads Layer Stream and provides a ZIP.</ows:Abstract>
</wps:Process>
<wps:Status creationTime="2024-06-14T11:53:12.289Z">
<wps:ProcessSucceeded>Process succeeded.</wps:ProcessSucceeded>
</wps:Status>
<wps:ProcessOutputs>
<wps:Output>
<ows:Identifier>result</ows:Identifier>
<ows:Title>The produced download</ows:Title>
<wps:Reference
href="http://172.18.0.1/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=5a4ff4af-6319-4aad-be4a-f0dce932a45f&outputId=result.csv&mimetype=text%2Fcsv"
mimeType="text/csv" />
</wps:Output>
</wps:ProcessOutputs>
</wps:ExecuteResponse>
Configuring the LayerDownloadPlugin goes into the MapStore2. Have to evaluate how to pass specific config from tabular_viewer
config to the LayerDownload
plugin. Either via LayerDownloadPlugin
or (if this is not possible) perhaps by a custom plugin.
Edit: Turns out that it is easier to configure WFS than to handle async download execution via WPS. I will leave out the WPS download option (which would not add any benefit, here). However, MapStore2's DownloadOptions
always render the SRS Select
box (even when configured empty).
In general, UI Download options can be set via
localConfig.json
plugin config. We should remove options which do not make any sense for non-spatial data.However, WFS download is set independently from that, so some unsupported download formats are still selectable then, like Shapefile or KML. Other formats like GeoJSON or GML are just fine.
localConfig.json
Remove WFS download option completely orfind out how to show working formats only