Skip to content

Commit 9e8e868

Browse files
committed
[TEST][QGIS Server] Add WFS GetFeature STARTINDEX test
1 parent a37ca2b commit 9e8e868

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

tests/src/python/test_qgsserver.py

+1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def wfs_getfeature_compare(self, requestid, request):
229229
def test_getfeature(self):
230230
tests = []
231231
tests.append(('nobbox', u'GetFeature&TYPENAME=testlayer'))
232+
tests.append(('startindex2', u'GetFeature&TYPENAME=testlayer&STARTINDEX=2'))
232233

233234
for id, req in tests:
234235
self.wfs_getfeature_compare(id, req)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Content-Type: text/xml; charset=utf-8
2+
3+
<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&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
4+
<gml:Box srsName="EPSG:4326">
5+
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates>
6+
</gml:Box>
7+
</gml:boundedBy>
8+
<gml:featureMember>
9+
<qgs:testlayer fid="testlayer.2">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:4326">
12+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20345931,44.90139484</gml:coordinates>
13+
</gml:Box>
14+
</gml:boundedBy>
15+
<qgs:geometry>
16+
<gml:Point srsName="EPSG:4326">
17+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484</gml:coordinates>
18+
</gml:Point>
19+
</qgs:geometry>
20+
<qgs:id>3</qgs:id>
21+
<qgs:name>three</qgs:name>
22+
<qgs:utf8nameè>three èé↓</qgs:utf8nameè>
23+
</qgs:testlayer>
24+
</gml:featureMember>
25+
</wfs:FeatureCollection>

0 commit comments

Comments
 (0)