Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add and fix WFS server MAXFEATURES test
It was not working when we do a POST with an XML
- Loading branch information
Showing
with
143 additions
and 17 deletions.
- +16 −11 src/server/qgswfsserver.cpp
- +58 −4 tests/src/python/test_qgsserver.py
- +42 −0 tests/testdata/qgis_server/wfs_getfeature_limit2.txt
- +1 −1 tests/testdata/qgis_server/wfs_getfeature_nobbox.txt
- +25 −0 tests/testdata/qgis_server/wfs_getfeature_start1_limit1.txt
- +1 −1 tests/testdata/qgis_server/wfs_getfeature_startindex2.txt
@@ -0,0 +1,42 @@ | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:qgs="http://www.qgis.org/gml" 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:?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=testlayer&OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<gml:featureMember> | ||
<qgs:testlayer fid="testlayer.0"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253 8.20349634,44.90148253</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<qgs:geometry> | ||
<gml:Point srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253</gml:coordinates> | ||
</gml:Point> | ||
</qgs:geometry> | ||
<qgs:id>1</qgs:id> | ||
<qgs:name>one</qgs:name> | ||
<qgs:utf8nameè>one èé</qgs:utf8nameè> | ||
</qgs:testlayer> | ||
</gml:featureMember> | ||
<gml:featureMember> | ||
<qgs:testlayer fid="testlayer.1"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568 8.20354699,44.90143568</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<qgs:geometry> | ||
<gml:Point srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568</gml:coordinates> | ||
</gml:Point> | ||
</qgs:geometry> | ||
<qgs:id>2</qgs:id> | ||
<qgs:name>two</qgs:name> | ||
<qgs:utf8nameè>two àò</qgs:utf8nameè> | ||
</qgs:testlayer> | ||
</gml:featureMember> | ||
</wfs:FeatureCollection> |
@@ -0,0 +1,25 @@ | ||
Content-Type: text/xml; charset=utf-8 | ||
|
||
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:qgs="http://www.qgis.org/gml" 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:?SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=testlayer&OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<gml:featureMember> | ||
<qgs:testlayer fid="testlayer.1"> | ||
<gml:boundedBy> | ||
<gml:Box srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568 8.20354699,44.90143568</gml:coordinates> | ||
</gml:Box> | ||
</gml:boundedBy> | ||
<qgs:geometry> | ||
<gml:Point srsName="EPSG:4326"> | ||
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568</gml:coordinates> | ||
</gml:Point> | ||
</qgs:geometry> | ||
<qgs:id>2</qgs:id> | ||
<qgs:name>two</qgs:name> | ||
<qgs:utf8nameè>two àò</qgs:utf8nameè> | ||
</qgs:testlayer> | ||
</gml:featureMember> | ||
</wfs:FeatureCollection> |