-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
QGIS Server - WFS GetFeature with multiple layers don't seems to works #24415
Comments
Author Name: Giovanni Manghi (@gioman) Can you share the project+data? when you say "query" you mean defining a filter in the WFS layer before loading it in QGIS with the WFS client?
|
Author Name: Benjamin Gerber (Benjamin Gerber)
Sorry, it's private :-/
The "query" word is related to the xml payload. Both ... are in the same payload of the same http post request. (I just do a "curl -X POST -d @payload.xml http://localhost:8580" with the payload that I've provided in my first commment). And the project has two layers configured for WFS. (I hope that's clear) |
Author Name: Giovanni Manghi (@gioman)
sorry no. I don't uderstand when you say ""standalone" qgis server" (it means not in docker?) and still do not understand what do you mean with payload (do you mean a particular URL request?). Can you provide a sample project with minimal data (even fake) and precise steps on how replicate? thanks! |
Author Name: Benjamin Gerber (Benjamin Gerber)
I've tried to reproduce a working use case with a simple WFS request with free OSM data but I've failed for now (problem in my qgis server configuration.) I don't have time to continue yet but i'll update this ticket later, when I'll got news. Thanks you GM. |
Author Name: Yves Jacolin (@yjacolin) Steps to see the problem:
See getFeature2.xml file attached.
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Christophe Mangeat (Christophe Mangeat) Hello, seems that following patch fixes with "release-2_18":
Can also be reproduced with: curl -H "Content-type: text/xml" -d @payload.xml ".../cgi-bin/qgis_mapserv.fcgi?map=.../layers.qgs" | grep "qgs" | grep "id". Seems to be ok on master (services/qgswfsgetfeature.cpp around line 760 ?)
|
Author Name: Christophe Mangeat (Christophe Mangeat) Hello, associated PR: #4893 |
Author Name: Jürgen Fischer (@jef-n)
(QGIS Server v2.18) In a project with have multiple points layers (named here pfa and pfa2). Both layers support WMS and WMF queries (Set in the layer property) Now, If I do a request with pfa1 as first Query and pfa2 as second Query (but in the same request), I got twice the result for pfa1 and any informations for pfa2. If I invert pfa 1 and pfa2, the result is inverted. If I add a pfa3, I got third time the result for the first queried result. If I query only one layer, that works fine. The payload of the request (POST request): the_geom 2715684.9999999995 1111404.444444444 2716404.9999999995 1112474.444444444 the_geom 2715684.9999999995 1111404.444444444 2716404.9999999995 1112474.444444444The answer: <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:qgs="http://www.qgis.org/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd http://www.qgis.org/gml http://localhost:8580/?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=pfa1,pfa1&OUTPUTFORMAT=XMLSCHEMA"> Expected result: 2 results for pfa1, 3 for pfa2. Can you reproduce this issue ? (QGIS Server v2.18) In a project with have multiple points layers (named here pfa and pfa2). Both layers support WMS and WMF queries (Set in the layer property) Now, If I do a request with pfa1 as first Query and pfa2 as second Query (but in the same request), I got twice the result for pfa1 and any informations for pfa2. If I invert pfa 1 and pfa2, the result is inverted. If I add a pfa3, I got third time the result for the first queried result. If I query only one layer, that works fine. The payload of the request (POST request): the_geom 2715684.9999999995 1111404.444444444 2716404.9999999995 1112474.444444444 the_geom 2715684.9999999995 1111404.444444444 2716404.9999999995 1112474.444444444 The answer: 2700519.74999999,1076245.12499999 2724130.50000001,1158202.12500001 2716072.066,1111642.902 2716072.066,1111642.902 2716072.066,1111642.902 254298 CH020000TE 508a 528.201 no no 0.3 si si 2716105.326,1111650.397 2716105.326,1111650.397 2716105.326,1111650.397 254299 CH020000TE 507a 528.117 no no 0.3 si si 2716072.066,1111642.902 2716072.066,1111642.902 2716072.066,1111642.902 254298 CH020000TE 508a 528.201 no no 0.3 si si 2716105.326,1111650.397 2716105.326,1111650.397 2716105.326,1111650.397 254299 CH020000TE 507a 528.117 no no 0.3 si si Expected result: 2 results for pfa1, 3 for pfa2. Can you reproduce this issue ? |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Anónimo (Anónimo) Applied in changeset 5701b67.
|
Author Name: Benjamin Gerber (Benjamin Gerber)
Original Redmine Issue: 16509
Affected QGIS version: 2.18.0
Redmine category:qgis_server
Hi there !
(QGIS Server v2.18)
In a project with have multiple points layers (named here pfa and pfa2).
(These layers are in a group "Punti fissi" that is in a group "MU Cadastre")
Both layers support WMS and WMF queries (Set in the layer property)
Both layers are published in the WFS capacity of the Project property.
Now, If I do a request with pfa1 as first Query and pfa2 as second Query (but in the same request), I got twice the result for pfa1 and any informations for pfa2. If I invert pfa 1 and pfa2, the result is inverted. If I add a pfa3, I got third time the result for the first queried result. If I query only one layer, that works fine.
The payload of the request (POST request):
The answer:
Expected result: 2 results for pfa1, 3 for pfa2.
The result: 4 results for pfa1, 0 for pfa2
Can you reproduce this issue ?
Thanks in advance
The text was updated successfully, but these errors were encountered: