[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-developer
Subject: [QGIS-Developer] WFS GetFeature request
From: Francesc Boccacci <francescoboccacci () libero ! it>
Date: 2020-10-26 14:56:11
Message-ID: 0eb10eae-c747-6107-0183-d3f8262a9cdb () libero ! it
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi all,
i'm using QGIS version 3.10.11 and i have a problem with QGIS SERVER
when i made a request of WFS service.
This is the request:
<SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=<Filter \
xmlns="http://www.opengis.net/ogc"><BBOX><PropertyName>the_geom</PropertyName><Envelope \
xmlns="http://www.opengis.net/gml"><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>
The response is:
1. <ServiceExceptionReportxmlns="http://www.opengis.net/ogc"version="1.2.0">
1. <ServiceExceptioncode="RequestNotWellFormed">There has to be a
1:1 mapping between each element in a TYPENAME and the FILTER
list</ServiceException>
2. </ServiceExceptionReport>
To get results i have to repeat the filter twice (or n-time if i have n
layers)
<SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=(<Filter \
xmlns="http://www.opengis.net/ogc"><BBOX><PropertyName>the_geom</PropertyName><Envelope \
xmlns="http://www.opengis.net/gml"><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)(<Filter
xmlns="http://www.opengis.net/ogc"><BBOX><PropertyName>the_geom</PropertyName><Envelope \
xmlns="http://www.opengis.net/gml"><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)
I don't remember in which version of QGIS SERVER the previous request
run with no issue. Does it change something?
Thanks
Francesco
--
*Informativa Privacy*â Ai sensi del Regolamento (UE) 2016/679 si precisa
che le informazioni contenute in questo messaggio sono riservate e ad
uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse
pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non
inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie.
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi all,</p>
<p>i'm using QGIS version 3.10.11 and i have a problem with QGIS
SERVER when i made a request of WFS service.</p>
<p>This is the request:</p>
<p><SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=G \
etFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=<Filter
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter></p>
<p>The response is:</p>
<ol class="tree-outline" role="tree" tabindex="-1" style="box-sizing: border-box; \
min-width: 0px; min-height: 0px; padding: 0px 0px 4px 4px; margin: 0px; z-index: 0; \
position: relative; list-style-type: none; padding-inline-start: 0px; color: rgb(48, \
57, 66); font-family: "dejavu sans mono", monospace; font-size: 11px; \
font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; \
font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: \
0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration-style: initial; \
text-decoration-color: initial;"><li role="treeitem" class="parent expanded" \
aria-expanded="true" style="box-sizing: border-box; min-width: 0px; min-height: 12px; \
text-overflow: ellipsis; white-space: nowrap; position: relative; display: flex; \
align-items: center;"><span class="shadow-xml-view-tag" style="box-sizing: \
border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, \
128);"><ServiceExceptionReport</span><span class="shadow-xml-view-tag" \
style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, \
128);"> </span><span class="shadow-xml-view-attribute-name" style="box-sizing: \
border-box; min-width: 0px; min-height: 0px; color: rgb(153, 69, \
0);">xmlns</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; \
min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">="</span><span \
class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: \
0px; min-height: 0px; color: rgb(26, 26, 166);"><a class="moz-txt-link-freetext" \
href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a></span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" \
style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, \
128);"> </span><span class="shadow-xml-view-attribute-name" style="box-sizing: \
border-box; min-width: 0px; min-height: 0px; color: rgb(153, 69, \
0);">version</span><span class="shadow-xml-view-tag" style="box-sizing: border-box; \
min-width: 0px; min-height: 0px; color: rgb(136, 18, 128);">="</span><span \
class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: \
0px; min-height: 0px; color: rgb(26, 26, 166);">1.2.0</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" \
style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, \
128);">></span></li><ol class="children expanded" role="group" style="box-sizing: \
border-box; min-width: 0px; min-height: 0px; list-style: none; padding: 0px; margin: \
0px; padding-inline-start: 16px; display: block;"><li role="treeitem" \
style="box-sizing: border-box; min-width: 0px; min-height: 12px; text-overflow: \
ellipsis; white-space: nowrap; position: relative; display: flex; align-items: \
center;"><span class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: \
0px; min-height: 0px; color: rgb(136, 18, 128);"><ServiceException</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);"> </span><span \
class="shadow-xml-view-attribute-name" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(153, 69, 0);">code</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);">="</span><span \
class="shadow-xml-view-attribute-value" style="box-sizing: border-box; min-width: \
0px; min-height: 0px; color: rgb(26, 26, 166);">RequestNotWellFormed</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);">"</span><span class="shadow-xml-view-tag" \
style="box-sizing: border-box; min-width: 0px; min-height: 0px; color: rgb(136, 18, \
128);">></span><span class="shadow-xml-view-text" style="box-sizing: border-box; \
min-width: 0px; min-height: 0px; color: rgb(0, 0, 0); white-space: pre;">There has to \
be a 1:1 mapping between each element in a TYPENAME and the FILTER list</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);"></ServiceException</span><span \
class="shadow-xml-view-tag" style="box-sizing: border-box; min-width: 0px; \
min-height: 0px; color: rgb(136, 18, 128);">></span></li><li role="treeitem" \
class="shadow-xml-view-close-tag force-white-icons selected" tabindex="0" \
aria-selected="true" style="box-sizing: border-box; min-width: 0px; min-height: 12px; \
outline-width: 0px; text-overflow: ellipsis; white-space: nowrap; position: relative; \
display: flex; align-items: center; margin-left: -16px; color: \
var(--selection-fg-color);"><span class="shadow-xml-view-tag" style="box-sizing: \
border-box; min-width: 0px; min-height: 0px; color: \
inherit;"></ServiceExceptionReport></span></li></ol></ol> <p>To get results i \
have to repeat the filter twice (or n-time if i have n layers)<br>
</p>
<p><SERVERURL>?MAXFEATURES=5&SERVICE=WFS&VERSION=1.1.0&REQUEST=G \
etFeature&TYPENAME=Layer1,Layer2&OUTPUTFORMAT=application/vnd.ogc.gml&SRSNAME=EPSG:3003&FILTER=(<Filter
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)(<Filter
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>><BBOX><PropertyName>the_geom</PropertyName><Envelope
xmlns=<a class="moz-txt-link-rfc2396E" \
href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>><lowerCorner>1680861.2565216224
4851238.120847652</lowerCorner><upperCorner>1680916.6004863703
4851321.496171168</upperCorner></Envelope></BBOX></Filter>)</p>
<p>I don't remember in which version of QGIS SERVER the previous
request run with no issue. Does it change something?</p>
<p>Thanks</p>
<p><br>
</p>
<p>Francesco<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-signature">-- <br>
<b>Informativa Privacy</b>– Ai sensi del Regolamento (UE) 2016/679
si precisa che le informazioni contenute in questo messaggio sono
riservate e ad uso esclusivo del destinatario. Qualora il
messaggio in parola Le fosse pervenuto per errore, La preghiamo di
eliminarlo senza copiarlo e di non inoltrarlo a terzi, dandocene
gentilmente comunicazione. Grazie.</div>
</body>
</html>
[Attachment #6 (text/plain)]
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic