forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Trying to download a dataset with the CSV format, for some datasets, the geometry field is not available
While downloading it as WFS, the geometry column is correctly added as expected
as an example with https://master.demo.geonode.org/geoserver/ows?service=WPS&version=1.0.0&REQUEST=GetExecutionStatus&executionId=8a4fc7bd-b7e4-4d41-be04-054bf9e47622&access_token=abc123456 (access token is faked)
This is the XML returned by GS:
<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="https://master.demo.geonode.org/geoserver/ows?" statusLocation="https://master.demo.geonode.org/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionStatus&executionId=8a4fc7bd-b7e4-4d41-be04-054bf9e47622" 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="2023-02-14T10:49:48.562Z">
<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="https://master.demo.geonode.org/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=8a4fc7bd-b7e4-4d41-be04-054bf9e47622&outputId=result.csv&mimetype=text%2Fcsv" mimeType="text/csv"/>
</wps:Output>
</wps:ProcessOutputs>
</wps:ExecuteResponse>
By downloading the result (4).csv the geometry is not available.
While downloading the same file as WFS, the CSV returns the geometry correctly geonode_alineamiento_vial.csv