Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPS Download creates CSV without geometry #345

Open
mattiagiupponi opened this issue Feb 14, 2023 · 0 comments
Open

WPS Download creates CSV without geometry #345

mattiagiupponi opened this issue Feb 14, 2023 · 0 comments

Comments

@mattiagiupponi
Copy link

mattiagiupponi commented Feb 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant