Skip to content

Commit 1e009b4

Browse files
committedOct 12, 2017
[Server][Tests] Update PyQgsServerWFS test for 1.1.0
1 parent 96ec4bb commit 1e009b4

13 files changed

+295
-15
lines changed
 

‎tests/src/python/test_qgsserver_wfs.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def wfs_getfeature_compare(self, requestid, request):
8383

8484
query_string = '?MAP=%s&SERVICE=WFS&VERSION=1.0.0&REQUEST=%s' % (urllib.parse.quote(project), request)
8585
header, body = self._execute_request(query_string)
86+
8687
self.result_compare(
8788
'wfs_getfeature_' + requestid + '.txt',
8889
"request %s failed.\n Query: %s" % (
@@ -98,6 +99,8 @@ def test_getfeature(self):
9899
tests.append(('startindex2', 'GetFeature&TYPENAME=testlayer&STARTINDEX=2'))
99100
tests.append(('limit2', 'GetFeature&TYPENAME=testlayer&MAXFEATURES=2'))
100101
tests.append(('start1_limit1', 'GetFeature&TYPENAME=testlayer&MAXFEATURES=1&STARTINDEX=1'))
102+
tests.append(('srsname', 'GetFeature&TYPENAME=testlayer&SRSNAME=EPSG:3857'))
103+
tests.append(('sortby', 'GetFeature&TYPENAME=testlayer&SORTBY=id D'))
101104

102105
for id, req in tests:
103106
self.wfs_getfeature_compare(id, req)
@@ -197,8 +200,49 @@ def test_getfeature_post(self):
197200
tests.append(('limit2_post', template.format('maxFeatures="2"')))
198201
tests.append(('start1_limit1_post', template.format('startIndex="1" maxFeatures="1"')))
199202

203+
srsTemplate = """<?xml version="1.0" encoding="UTF-8"?>
204+
<wfs:GetFeature service="WFS" version="1.0.0" {} xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
205+
<wfs:Query typeName="testlayer" srsName="EPSG:3857" xmlns:feature="http://www.qgis.org/gml">
206+
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
207+
<ogc:BBOX>
208+
<ogc:PropertyName>geometry</ogc:PropertyName>
209+
<gml:Envelope xmlns:gml="http://www.opengis.net/gml">
210+
<gml:lowerCorner>8 44</gml:lowerCorner>
211+
<gml:upperCorner>9 45</gml:upperCorner>
212+
</gml:Envelope>
213+
</ogc:BBOX>
214+
</ogc:Filter>
215+
</wfs:Query>
216+
</wfs:GetFeature>
217+
"""
218+
tests.append(('srsname_post', srsTemplate.format("")))
219+
220+
sortTemplate = """<?xml version="1.0" encoding="UTF-8"?>
221+
<wfs:GetFeature service="WFS" version="1.0.0" {} xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">
222+
<wfs:Query typeName="testlayer" xmlns:feature="http://www.qgis.org/gml">
223+
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
224+
<ogc:BBOX>
225+
<ogc:PropertyName>geometry</ogc:PropertyName>
226+
<gml:Envelope xmlns:gml="http://www.opengis.net/gml">
227+
<gml:lowerCorner>8 44</gml:lowerCorner>
228+
<gml:upperCorner>9 45</gml:upperCorner>
229+
</gml:Envelope>
230+
</ogc:BBOX>
231+
</ogc:Filter>
232+
<ogc:SortBy>
233+
<ogc:SortProperty>
234+
<ogc:PropertyName>id</ogc:PropertyName>
235+
<ogc:SortOrder>DESC</ogc:SortOrder>
236+
</ogc:SortProperty>
237+
</ogc:SortBy>
238+
</wfs:Query>
239+
</wfs:GetFeature>
240+
"""
241+
tests.append(('sortby_post', sortTemplate.format("")))
242+
200243
for id, req in tests:
201244
self.wfs_getfeature_post_compare(id, req)
202245

246+
203247
if __name__ == '__main__':
204248
unittest.main()

‎tests/testdata/qgis_server/wfs_getfeature_limit2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">

‎tests/testdata/qgis_server/wfs_getfeature_limit2_post.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">
@@ -14,7 +14,7 @@ Content-Type: text/xml; charset=utf-8
1414
</gml:boundedBy>
1515
<qgs:geometry>
1616
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17-
<coordinates xmlns="http://www.opengis.net/gml">8.20349634,44.90148253</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20349634,44.90148253</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>1</qgs:id>
@@ -31,7 +31,7 @@ Content-Type: text/xml; charset=utf-8
3131
</gml:boundedBy>
3232
<qgs:geometry>
3333
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
34-
<coordinates xmlns="http://www.opengis.net/gml">8.20354699,44.90143568</coordinates>
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20354699,44.90143568</coordinates>
3535
</Point>
3636
</qgs:geometry>
3737
<qgs:id>2</qgs:id>

‎tests/testdata/qgis_server/wfs_getfeature_nobbox.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">

‎tests/testdata/qgis_server/wfs_getfeature_nobbox_post.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">
@@ -14,7 +14,7 @@ Content-Type: text/xml; charset=utf-8
1414
</gml:boundedBy>
1515
<qgs:geometry>
1616
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17-
<coordinates xmlns="http://www.opengis.net/gml">8.20349634,44.90148253</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20349634,44.90148253</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>1</qgs:id>
@@ -31,7 +31,7 @@ Content-Type: text/xml; charset=utf-8
3131
</gml:boundedBy>
3232
<qgs:geometry>
3333
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
34-
<coordinates xmlns="http://www.opengis.net/gml">8.20354699,44.90143568</coordinates>
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20354699,44.90143568</coordinates>
3535
</Point>
3636
</qgs:geometry>
3737
<qgs:id>2</qgs:id>
@@ -48,7 +48,7 @@ Content-Type: text/xml; charset=utf-8
4848
</gml:boundedBy>
4949
<qgs:geometry>
5050
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
51-
<coordinates xmlns="http://www.opengis.net/gml">8.20345931,44.90139484</coordinates>
51+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20345931,44.90139484</coordinates>
5252
</Point>
5353
</qgs:geometry>
5454
<qgs:id>3</qgs:id>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Content-Type: text/xml; subtype=gml/2.1.2; 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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;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.20345931,44.90139484 8.20354699,44.90148253</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+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20345931,44.90139484</coordinates>
18+
</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+
<gml:featureMember>
26+
<qgs:testlayer fid="testlayer.1">
27+
<gml:boundedBy>
28+
<gml:Box srsName="EPSG:4326">
29+
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568 8.20354699,44.90143568</gml:coordinates>
30+
</gml:Box>
31+
</gml:boundedBy>
32+
<qgs:geometry>
33+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20354699,44.90143568</coordinates>
35+
</Point>
36+
</qgs:geometry>
37+
<qgs:id>2</qgs:id>
38+
<qgs:name>two</qgs:name>
39+
<qgs:utf8nameè>two àò</qgs:utf8nameè>
40+
</qgs:testlayer>
41+
</gml:featureMember>
42+
<gml:featureMember>
43+
<qgs:testlayer fid="testlayer.0">
44+
<gml:boundedBy>
45+
<gml:Box srsName="EPSG:4326">
46+
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253 8.20349634,44.90148253</gml:coordinates>
47+
</gml:Box>
48+
</gml:boundedBy>
49+
<qgs:geometry>
50+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
51+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20349634,44.90148253</coordinates>
52+
</Point>
53+
</qgs:geometry>
54+
<qgs:id>1</qgs:id>
55+
<qgs:name>one</qgs:name>
56+
<qgs:utf8nameè>one èé</qgs:utf8nameè>
57+
</qgs:testlayer>
58+
</gml:featureMember>
59+
</wfs:FeatureCollection>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Content-Type: text/xml; subtype=gml/2.1.2; 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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;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,44 9,45</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+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20345931,44.90139484</coordinates>
18+
</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+
<gml:featureMember>
26+
<qgs:testlayer fid="testlayer.1">
27+
<gml:boundedBy>
28+
<gml:Box srsName="EPSG:4326">
29+
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568 8.20354699,44.90143568</gml:coordinates>
30+
</gml:Box>
31+
</gml:boundedBy>
32+
<qgs:geometry>
33+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20354699,44.90143568</coordinates>
35+
</Point>
36+
</qgs:geometry>
37+
<qgs:id>2</qgs:id>
38+
<qgs:name>two</qgs:name>
39+
<qgs:utf8nameè>two àò</qgs:utf8nameè>
40+
</qgs:testlayer>
41+
</gml:featureMember>
42+
<gml:featureMember>
43+
<qgs:testlayer fid="testlayer.0">
44+
<gml:boundedBy>
45+
<gml:Box srsName="EPSG:4326">
46+
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253 8.20349634,44.90148253</gml:coordinates>
47+
</gml:Box>
48+
</gml:boundedBy>
49+
<qgs:geometry>
50+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
51+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20349634,44.90148253</coordinates>
52+
</Point>
53+
</qgs:geometry>
54+
<qgs:id>1</qgs:id>
55+
<qgs:name>one</qgs:name>
56+
<qgs:utf8nameè>one èé</qgs:utf8nameè>
57+
</qgs:testlayer>
58+
</gml:featureMember>
59+
</wfs:FeatureCollection>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Content-Type: text/xml; subtype=gml/2.1.2; 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 ?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs&amp;SRSNAME=EPSG:3857&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
4+
<gml:Box srsName="EPSG:4326">
5+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20354699,44.90148253</gml:coordinates>
6+
</gml:Box>
7+
</gml:boundedBy>
8+
<gml:featureMember>
9+
<qgs:testlayer fid="testlayer.0">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:3857">
12+
<gml:coordinates cs="," ts=" ">913209.03579284,5606025.23730414 913209.03579284,5606025.23730414</gml:coordinates>
13+
</gml:Box>
14+
</gml:boundedBy>
15+
<qgs:geometry>
16+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913209.03579284,5606025.23730414</coordinates>
18+
</Point>
19+
</qgs:geometry>
20+
<qgs:id>1</qgs:id>
21+
<qgs:name>one</qgs:name>
22+
<qgs:utf8nameè>one èé</qgs:utf8nameè>
23+
</qgs:testlayer>
24+
</gml:featureMember>
25+
<gml:featureMember>
26+
<qgs:testlayer fid="testlayer.1">
27+
<gml:boundedBy>
28+
<gml:Box srsName="EPSG:3857">
29+
<gml:coordinates cs="," ts=" ">913214.67407005,5606017.87425818 913214.67407005,5606017.87425818</gml:coordinates>
30+
</gml:Box>
31+
</gml:boundedBy>
32+
<qgs:geometry>
33+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913214.67407005,5606017.87425818</coordinates>
35+
</Point>
36+
</qgs:geometry>
37+
<qgs:id>2</qgs:id>
38+
<qgs:name>two</qgs:name>
39+
<qgs:utf8nameè>two àò</qgs:utf8nameè>
40+
</qgs:testlayer>
41+
</gml:featureMember>
42+
<gml:featureMember>
43+
<qgs:testlayer fid="testlayer.2">
44+
<gml:boundedBy>
45+
<gml:Box srsName="EPSG:3857">
46+
<gml:coordinates cs="," ts=" ">913204.91280263,5606011.45647302 913204.91280263,5606011.45647302</gml:coordinates>
47+
</gml:Box>
48+
</gml:boundedBy>
49+
<qgs:geometry>
50+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
51+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913204.91280263,5606011.45647302</coordinates>
52+
</Point>
53+
</qgs:geometry>
54+
<qgs:id>3</qgs:id>
55+
<qgs:name>three</qgs:name>
56+
<qgs:utf8nameè>three èé↓</qgs:utf8nameè>
57+
</qgs:testlayer>
58+
</gml:featureMember>
59+
</wfs:FeatureCollection>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Content-Type: text/xml; subtype=gml/2.1.2; 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 ?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs&amp;SRSNAME=EPSG:3857&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
4+
<gml:Box srsName="EPSG:4326">
5+
<gml:coordinates cs="," ts=" ">8,44 9,45</gml:coordinates>
6+
</gml:Box>
7+
</gml:boundedBy>
8+
<gml:featureMember>
9+
<qgs:testlayer fid="testlayer.0">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:3857">
12+
<gml:coordinates cs="," ts=" ">913209.03579284,5606025.23730414 913209.03579284,5606025.23730414</gml:coordinates>
13+
</gml:Box>
14+
</gml:boundedBy>
15+
<qgs:geometry>
16+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913209.03579284,5606025.23730414</coordinates>
18+
</Point>
19+
</qgs:geometry>
20+
<qgs:id>1</qgs:id>
21+
<qgs:name>one</qgs:name>
22+
<qgs:utf8nameè>one èé</qgs:utf8nameè>
23+
</qgs:testlayer>
24+
</gml:featureMember>
25+
<gml:featureMember>
26+
<qgs:testlayer fid="testlayer.1">
27+
<gml:boundedBy>
28+
<gml:Box srsName="EPSG:3857">
29+
<gml:coordinates cs="," ts=" ">913214.67407005,5606017.87425818 913214.67407005,5606017.87425818</gml:coordinates>
30+
</gml:Box>
31+
</gml:boundedBy>
32+
<qgs:geometry>
33+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
34+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913214.67407005,5606017.87425818</coordinates>
35+
</Point>
36+
</qgs:geometry>
37+
<qgs:id>2</qgs:id>
38+
<qgs:name>two</qgs:name>
39+
<qgs:utf8nameè>two àò</qgs:utf8nameè>
40+
</qgs:testlayer>
41+
</gml:featureMember>
42+
<gml:featureMember>
43+
<qgs:testlayer fid="testlayer.2">
44+
<gml:boundedBy>
45+
<gml:Box srsName="EPSG:3857">
46+
<gml:coordinates cs="," ts=" ">913204.91280263,5606011.45647302 913204.91280263,5606011.45647302</gml:coordinates>
47+
</gml:Box>
48+
</gml:boundedBy>
49+
<qgs:geometry>
50+
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:3857">
51+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">913204.91280263,5606011.45647302</coordinates>
52+
</Point>
53+
</qgs:geometry>
54+
<qgs:id>3</qgs:id>
55+
<qgs:name>three</qgs:name>
56+
<qgs:utf8nameè>three èé↓</qgs:utf8nameè>
57+
</qgs:testlayer>
58+
</gml:featureMember>
59+
</wfs:FeatureCollection>

‎tests/testdata/qgis_server/wfs_getfeature_start1_limit1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">

‎tests/testdata/qgis_server/wfs_getfeature_start1_limit1_post.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">
@@ -14,7 +14,7 @@ Content-Type: text/xml; charset=utf-8
1414
</gml:boundedBy>
1515
<qgs:geometry>
1616
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17-
<coordinates xmlns="http://www.opengis.net/gml">8.20354699,44.90143568</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20354699,44.90143568</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>2</qgs:id>

‎tests/testdata/qgis_server/wfs_getfeature_startindex2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">

‎tests/testdata/qgis_server/wfs_getfeature_startindex2_post.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Type: text/xml; charset=utf-8
1+
Content-Type: text/xml; subtype=gml/2.1.2; charset=utf-8
22

33
<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 ?MAP=tests/testdata/qgis_server/test_project_wfs.qgs&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=testlayer&amp;OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy>
44
<gml:Box srsName="EPSG:4326">
@@ -14,7 +14,7 @@ Content-Type: text/xml; charset=utf-8
1414
</gml:boundedBy>
1515
<qgs:geometry>
1616
<Point xmlns="http://www.opengis.net/gml" srsName="EPSG:4326">
17-
<coordinates xmlns="http://www.opengis.net/gml">8.20345931,44.90139484</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml" cs="," ts=" ">8.20345931,44.90139484</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>3</qgs:id>

0 commit comments

Comments
 (0)
Please sign in to comment.