[QGIS-Developer] WFS GetFeature request
Francesc Boccacci
francescoboccacci at libero.it
Mon Oct 26 07:56:11 PDT 2020
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20201026/53c53c05/attachment.html>
More information about the QGIS-Developer
mailing list