GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
15 stars 109 forks source link

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

Closed giohappy closed 2 years ago

giohappy commented 2 years ago

@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

  1. Try to download the filtered dataset.

Specifications


@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:

b3

NOTE: Export works fine if Layer filter is not enabled

DavidQuartz commented 2 years ago

Can you provide some datasets to test with @giohappy ?

giohappy commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@giohappy the corresponding issue has been created on Mapstore here