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

Geonode Download filtered dataset, where filter is based on another layer #1192

Closed
giohappy opened this issue Sep 12, 2022 · 4 comments
Closed

Comments

@giohappy
Copy link

@nagyrobir commented on Tue Aug 16 2022

Expected Behavior

I have a point layer uploaded in Geonode, via the QGIS geonode plugin. I can view the dataset, everything works as expected.
I have a polygon layer created through geonode with one polygon. Works as expected.
When i try to filter the point layer by the polygon layer, the filtering works as expected.
When i try to download the filtered dataset, i would expect to be able to download it, the same way as when i hand draw the polygon filter without using the polygon layer.

Actual Behavior

When i try to download the filtered dataset then i get the error message from the image attached.
If i filter the point layer by a polygon that i hand draw, to be explicit, without the use of the polygon layer that i created manually,then i can export the filtered dataset without any problem

download_failed

Download all the points from the points layer, which intersect the polygon that i am drawing myself during the filtering -> Works!
Download all the points from the points layer, which intersect the polygon that is in the polygon layer - > Does not work.

Steps to Reproduce the Problem

1.Get a point layer
2.Get a polygon layer
3.Intersect the point layer by the polygon layer
4. Try to download the filtered dataset.

Specifications

  • GeoNode version: 4.x
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): Geonode Docker
  • Platform:Linux
  • Additional details:

@marthamareal commented on Mon Sep 05 2022

This error is similar to the one raised when you try to export a map layer with the Layer filter option enabled.
Steps to reproduce:

  • Open a map with a dataset
  • Select a layer and apply filters and save
    b
  • Export the layer with both options enabled, and the error will be raised
    b2

b3

NOTE: Export works fine if Layer filter is not enabled

@DavidQuartz
Copy link
Member

Can you provide some datasets to test with @giohappy ?

@giohappy
Copy link
Author

@DavidQuartz I've created this map where ProvCM01012019_g_WGS84_lKHiGZ3 layer is filtered (intersects) by the upper layer.
If you try the export of ProvCM01012019_g_WGS84_lKHiGZ3 you will get the error.

image

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 https://master.demo.geonode.org/geoserver/schemas/ows/1.1.0/owsAll.xsd">
   <ows:Exception exceptionCode="NoApplicableCode">
      <ows:ExceptionText>Could not parse XML request.
The element type "wps:ComplexData" must be terminated by the matching end-tag "</wps:ComplexData>"..</ows:ExceptionText>
   </ows:Exception>
</ows:ExceptionReport>

@DavidQuartz
Copy link
Member

DavidQuartz commented Sep 20, 2022

@giohappy this issue stems from Mapstore. The XML for the filter applied is wrongly constructed. I was unable to replicate it on Mapstore however because of this issue
cc @tdipisa

@DavidQuartz
Copy link
Member

@giohappy the corresponding issue has been created on Mapstore here

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

2 participants