Skip to content

Commit 46310d4

Browse files
authoredApr 24, 2017
Merge pull request #4404 from elpaso/server-tests-improvements
[server] Tests housekeeping and improved robustness
2 parents fbe10d4 + d345306 commit 46310d4

22 files changed

+1154
-892
lines changed
 

‎tests/src/python/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,9 @@ IF (WITH_APIDOC)
189189
ENDIF (WITH_APIDOC)
190190

191191
IF (WITH_SERVER)
192-
ADD_PYTHON_TEST(PyQgsServer test_qgsserver.py)
193-
ADD_PYTHON_TEST(PyQgsServerPlugins test_qgsserver_plugins.py)
192+
ADD_PYTHON_TEST(PyQgsServer test_qgsserver.py)
193+
ADD_PYTHON_TEST(PyQgsServerPlugins test_qgsserver_plugins.py)
194+
ADD_PYTHON_TEST(PyQgsServerWMS test_qgsserver_wms.py)
194195
ADD_PYTHON_TEST(PyQgsServerSettings test_qgsserver_settings.py)
195196
ADD_PYTHON_TEST(PyQgsServerProjectUtils test_qgsserver_projectutils.py)
196197
ADD_PYTHON_TEST(PyQgsServerSecurity test_qgsserver_security.py)

‎tests/src/python/qgis_wrapped_server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545

4646

4747
import os
48+
49+
# Needed on Qt 5 so that the serialization of XML is consistent among all executions
50+
os.environ['QT_HASH_SEED'] = '1'
51+
4852
import sys
4953
import signal
5054
import ssl

‎tests/src/python/test_qgsserver.py

Lines changed: 132 additions & 798 deletions
Large diffs are not rendered by default.

‎tests/src/python/test_qgsserver_security.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515

1616
from qgis.utils import spatialite_connect
1717
import os
18+
19+
# Needed on Qt 5 so that the serialization of XML is consistent among all executions
20+
os.environ['QT_HASH_SEED'] = '1'
21+
1822
import time
1923
import urllib.parse
2024
from shutil import copyfile

‎tests/src/python/test_qgsserver_wms.py

Lines changed: 768 additions & 0 deletions
Large diffs are not rendered by default.

‎tests/testdata/qgis_server/getcapabilities.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Content-Length: 5590
1+
Content-Length: 5775
22
Content-Type: text/xml; charset=utf-8
33

44
<?xml version="1.0" encoding="utf-8"?>
5-
<WMS_Capabilities xmlns:sld="http://www.opengis.net/sld" version="1.3" xmlns="http://www.opengis.net/wms" xmlns:qgs="http://www.qgis.org/wms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgsSERVICE=WMS&amp;REQUEST=GetSchemaExtension">
5+
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qgs="http://www.qgis.org/wms" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" version="1.3" xmlns:sld="http://www.opengis.net/sld">
66
<Service>
77
<Name>WMS</Name>
88
<Title>QGIS TestProject</Title>
99
<Abstract>Some UTF8 text èòù</Abstract>
1010
<KeywordList>
1111
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
1212
</KeywordList>
13-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href=""/>
13+
<OnlineResource xlink:type="simple" xlink:href="" xmlns:xlink="http://www.w3.org/1999/xlink"/>
1414
<ContactInformation>
1515
<ContactPersonPrimary>
1616
<ContactPerson>Alessandro Pasotti</ContactPerson>
@@ -30,7 +30,7 @@ Content-Type: text/xml; charset=utf-8
3030
<DCPType>
3131
<HTTP>
3232
<Get>
33-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
33+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
3434
</Get>
3535
</HTTP>
3636
</DCPType>
@@ -45,7 +45,7 @@ Content-Type: text/xml; charset=utf-8
4545
<DCPType>
4646
<HTTP>
4747
<Get>
48-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
48+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
4949
</Get>
5050
</HTTP>
5151
</DCPType>
@@ -59,7 +59,7 @@ Content-Type: text/xml; charset=utf-8
5959
<DCPType>
6060
<HTTP>
6161
<Get>
62-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
62+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
6363
</Get>
6464
</HTTP>
6565
</DCPType>
@@ -70,7 +70,7 @@ Content-Type: text/xml; charset=utf-8
7070
<DCPType>
7171
<HTTP>
7272
<Get>
73-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
73+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
7474
</Get>
7575
</HTTP>
7676
</DCPType>
@@ -80,7 +80,7 @@ Content-Type: text/xml; charset=utf-8
8080
<DCPType>
8181
<HTTP>
8282
<Get>
83-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
83+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
8484
</Get>
8585
</HTTP>
8686
</DCPType>
@@ -90,7 +90,7 @@ Content-Type: text/xml; charset=utf-8
9090
<DCPType>
9191
<HTTP>
9292
<Get>
93-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
93+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
9494
</Get>
9595
</HTTP>
9696
</DCPType>
@@ -111,8 +111,8 @@ Content-Type: text/xml; charset=utf-8
111111
<southBoundLatitude>44.9012</southBoundLatitude>
112112
<northBoundLatitude>44.9016</northBoundLatitude>
113113
</EX_GeographicBoundingBox>
114-
<BoundingBox CRS="EPSG:3857" minx="913171" maxx="913283" miny="5.60599e+06" maxy="5.60604e+06"/>
115-
<BoundingBox CRS="EPSG:4326" minx="44.9012" maxx="44.9016" miny="8.20315" maxy="8.20416"/>
114+
<BoundingBox maxy="5.60604e+06" maxx="913283" miny="5.60599e+06" CRS="EPSG:3857" minx="913171"/>
115+
<BoundingBox maxy="8.20416" maxx="44.9016" miny="8.20315" CRS="EPSG:4326" minx="44.9012"/>
116116
<Layer queryable="1">
117117
<Name>testlayer èé</Name>
118118
<Title>A test vector layer</Title>
@@ -126,14 +126,14 @@ Content-Type: text/xml; charset=utf-8
126126
<southBoundLatitude>44.9014</southBoundLatitude>
127127
<northBoundLatitude>44.9015</northBoundLatitude>
128128
</EX_GeographicBoundingBox>
129-
<BoundingBox CRS="EPSG:3857" minx="913205" maxx="913215" miny="5.60601e+06" maxy="5.60603e+06"/>
130-
<BoundingBox CRS="EPSG:4326" minx="44.9014" maxx="44.9015" miny="8.20346" maxy="8.20355"/>
129+
<BoundingBox maxy="5.60603e+06" maxx="913215" miny="5.60601e+06" CRS="EPSG:3857" minx="913205"/>
130+
<BoundingBox maxy="8.20355" maxx="44.9015" miny="8.20346" CRS="EPSG:4326" minx="44.9014"/>
131131
<Style>
132132
<Name>default</Name>
133133
<Title>default</Title>
134134
<LegendURL>
135135
<Format>image/png</Format>
136-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs&amp;SERVICE=WMS&amp;VERSION=1.3&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default"/>
136+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;SERVICE=WMS&amp;VERSION=1.3&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default" xmlns:xlink="http://www.w3.org/1999/xlink"/>
137137
</LegendURL>
138138
</Style>
139139
</Layer>

‎tests/testdata/qgis_server/getcapabilities_inspire.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Content-Length: 7368
1+
Content-Length: 7202
22
Content-Type: text/xml; charset=utf-8
33

44
<?xml version="1.0" encoding="utf-8"?>
5-
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:inspire_vs="http://inspire.ec.europa.eu/schemas/inspire_vs/1.0" xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0" version="1.3.0" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http://inspire.ec.europa.eu/schemas/inspire_vs/1.0 http://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" xmlns:sld="http://www.opengis.net/sld" xmlns:qgs="http://www.qgis.org/wms">
5+
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qgs="http://www.qgis.org/wms" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http://inspire.ec.europa.eu/schemas/inspire_vs/1.0 http://inspire.ec.europa.eu/schemas/inspire_vs/1.0/inspire_vs.xsd ?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" xmlns:inspire_common="http://inspire.ec.europa.eu/schemas/common/1.0" version="1.3.0" xmlns:sld="http://www.opengis.net/sld" xmlns:inspire_vs="http://inspire.ec.europa.eu/schemas/inspire_vs/1.0">
66
<Service>
77
<Name>WMS</Name>
88
<Title>QGIS TestProject</Title>
99
<Abstract>Some UTF8 text èòù</Abstract>
1010
<KeywordList>
1111
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
1212
</KeywordList>
13-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href=""/>
13+
<OnlineResource xlink:type="simple" xlink:href="" xmlns:xlink="http://www.w3.org/1999/xlink"/>
1414
<ContactInformation>
1515
<ContactPersonPrimary>
1616
<ContactPerson>Alessandro Pasotti</ContactPerson>
@@ -30,7 +30,7 @@ Content-Type: text/xml; charset=utf-8
3030
<DCPType>
3131
<HTTP>
3232
<Get>
33-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
33+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
3434
</Get>
3535
</HTTP>
3636
</DCPType>
@@ -45,7 +45,7 @@ Content-Type: text/xml; charset=utf-8
4545
<DCPType>
4646
<HTTP>
4747
<Get>
48-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
48+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
4949
</Get>
5050
</HTTP>
5151
</DCPType>
@@ -59,7 +59,7 @@ Content-Type: text/xml; charset=utf-8
5959
<DCPType>
6060
<HTTP>
6161
<Get>
62-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
62+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
6363
</Get>
6464
</HTTP>
6565
</DCPType>
@@ -70,7 +70,7 @@ Content-Type: text/xml; charset=utf-8
7070
<DCPType>
7171
<HTTP>
7272
<Get>
73-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
73+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
7474
</Get>
7575
</HTTP>
7676
</DCPType>
@@ -80,7 +80,7 @@ Content-Type: text/xml; charset=utf-8
8080
<DCPType>
8181
<HTTP>
8282
<Get>
83-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
83+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
8484
</Get>
8585
</HTTP>
8686
</DCPType>
@@ -90,7 +90,7 @@ Content-Type: text/xml; charset=utf-8
9090
<DCPType>
9191
<HTTP>
9292
<Get>
93-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;"/>
93+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
9494
</Get>
9595
</HTTP>
9696
</DCPType>
@@ -99,7 +99,7 @@ Content-Type: text/xml; charset=utf-8
9999
<Exception>
100100
<Format>XML</Format>
101101
</Exception>
102-
<sld:UserDefinedSymbolization RemoteWFS="0" RemoteWCS="0" InlineFeature="0" UserStyle="1" SupportSLD="1" UserLayer="0"/>
102+
<sld:UserDefinedSymbolization SupportSLD="1" RemoteWCS="0" UserLayer="0" InlineFeature="0" RemoteWFS="0" UserStyle="1"/>
103103
<inspire_vs:ExtendedCapabilities>
104104
<inspire_common:ResourceType>service</inspire_common:ResourceType>
105105
<inspire_common:SpatialDataServiceType>view</inspire_common:SpatialDataServiceType>
@@ -132,8 +132,8 @@ Content-Type: text/xml; charset=utf-8
132132
<southBoundLatitude>44.9012</southBoundLatitude>
133133
<northBoundLatitude>44.9016</northBoundLatitude>
134134
</EX_GeographicBoundingBox>
135-
<BoundingBox CRS="EPSG:3857" maxx="913283" minx="913171" maxy="5.60604e+06" miny="5.60599e+06"/>
136-
<BoundingBox CRS="EPSG:4326" maxx="44.9016" minx="44.9012" maxy="8.20416" miny="8.20315"/>
135+
<BoundingBox maxy="5.60604e+06" maxx="913283" miny="5.60599e+06" CRS="EPSG:3857" minx="913171"/>
136+
<BoundingBox maxy="8.20416" maxx="44.9016" miny="8.20315" CRS="EPSG:4326" minx="44.9012"/>
137137
<Layer queryable="1">
138138
<Name>testlayer èé</Name>
139139
<Title>A test vector layer</Title>
@@ -147,14 +147,14 @@ Content-Type: text/xml; charset=utf-8
147147
<southBoundLatitude>44.9014</southBoundLatitude>
148148
<northBoundLatitude>44.9015</northBoundLatitude>
149149
</EX_GeographicBoundingBox>
150-
<BoundingBox CRS="EPSG:3857" maxx="913215" minx="913205" maxy="5.60603e+06" miny="5.60601e+06"/>
151-
<BoundingBox CRS="EPSG:4326" maxx="44.9015" minx="44.9014" maxy="8.20355" miny="8.20346"/>
150+
<BoundingBox maxy="5.60603e+06" maxx="913215" miny="5.60601e+06" CRS="EPSG:3857" minx="913205"/>
151+
<BoundingBox maxy="8.20355" maxx="44.9015" miny="8.20346" CRS="EPSG:4326" minx="44.9014"/>
152152
<Style>
153153
<Name>default</Name>
154154
<Title>default</Title>
155155
<LegendURL>
156156
<Format>image/png</Format>
157-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test-project_inspire.qgs&amp;&amp;SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default&amp;SLD_VERSION=1.1.0"/>
157+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server/test_project_inspire.qgs&amp;SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default&amp;SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink"/>
158158
</LegendURL>
159159
</Style>
160160
</Layer>

‎tests/testdata/qgis_server/getprojectsettings.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Content-Length: 6685
1+
Content-Length: 6939
22
Content-Type: text/xml; charset=utf-8
33

44
<?xml version="1.0" encoding="utf-8"?>
5-
<WMS_Capabilities xmlns:sld="http://www.opengis.net/sld" version="1.3.0" xmlns="http://www.opengis.net/wms" xmlns:qgs="http://www.qgis.org/wms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgsSERVICE=WMS&amp;REQUEST=GetSchemaExtension">
5+
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:qgs="http://www.qgis.org/wms" xmlns="http://www.opengis.net/wms" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" version="1.3.0" xmlns:sld="http://www.opengis.net/sld">
66
<Service>
77
<Name>WMS</Name>
88
<Title>QGIS TestProject</Title>
99
<Abstract>Some UTF8 text èòù</Abstract>
1010
<KeywordList>
1111
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
1212
</KeywordList>
13-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href=""/>
13+
<OnlineResource xlink:type="simple" xlink:href="" xmlns:xlink="http://www.w3.org/1999/xlink"/>
1414
<ContactInformation>
1515
<ContactPersonPrimary>
1616
<ContactPerson>Alessandro Pasotti</ContactPerson>
@@ -30,7 +30,7 @@ Content-Type: text/xml; charset=utf-8
3030
<DCPType>
3131
<HTTP>
3232
<Get>
33-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
33+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
3434
</Get>
3535
</HTTP>
3636
</DCPType>
@@ -45,7 +45,7 @@ Content-Type: text/xml; charset=utf-8
4545
<DCPType>
4646
<HTTP>
4747
<Get>
48-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
48+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
4949
</Get>
5050
</HTTP>
5151
</DCPType>
@@ -59,7 +59,7 @@ Content-Type: text/xml; charset=utf-8
5959
<DCPType>
6060
<HTTP>
6161
<Get>
62-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
62+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
6363
</Get>
6464
</HTTP>
6565
</DCPType>
@@ -70,7 +70,7 @@ Content-Type: text/xml; charset=utf-8
7070
<DCPType>
7171
<HTTP>
7272
<Get>
73-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
73+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
7474
</Get>
7575
</HTTP>
7676
</DCPType>
@@ -80,7 +80,7 @@ Content-Type: text/xml; charset=utf-8
8080
<DCPType>
8181
<HTTP>
8282
<Get>
83-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
83+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
8484
</Get>
8585
</HTTP>
8686
</DCPType>
@@ -90,7 +90,7 @@ Content-Type: text/xml; charset=utf-8
9090
<DCPType>
9191
<HTTP>
9292
<Get>
93-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
93+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
9494
</Get>
9595
</HTTP>
9696
</DCPType>
@@ -102,7 +102,7 @@ Content-Type: text/xml; charset=utf-8
102102
<DCPType>
103103
<HTTP>
104104
<Get>
105-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs"/>
105+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
106106
</Get>
107107
</HTTP>
108108
</DCPType>
@@ -111,7 +111,7 @@ Content-Type: text/xml; charset=utf-8
111111
<Exception>
112112
<Format>XML</Format>
113113
</Exception>
114-
<sld:UserDefinedSymbolization UserStyle="1" RemoteWFS="0" SupportSLD="1" UserLayer="0" RemoteWCS="0" InlineFeature="0"/>
114+
<sld:UserDefinedSymbolization SupportSLD="1" RemoteWCS="0" UserLayer="0" InlineFeature="0" RemoteWFS="0" UserStyle="1"/>
115115
<WFSLayers>
116116
<WFSLayer name="testlayer èé"/>
117117
</WFSLayers>
@@ -127,8 +127,8 @@ Content-Type: text/xml; charset=utf-8
127127
<southBoundLatitude>44.9012</southBoundLatitude>
128128
<northBoundLatitude>44.9016</northBoundLatitude>
129129
</EX_GeographicBoundingBox>
130-
<BoundingBox CRS="EPSG:3857" minx="913171" maxx="913283" miny="5.60599e+06" maxy="5.60604e+06"/>
131-
<BoundingBox CRS="EPSG:4326" minx="44.9012" maxx="44.9016" miny="8.20315" maxy="8.20416"/>
130+
<BoundingBox maxy="5.60604e+06" maxx="913283" miny="5.60599e+06" CRS="EPSG:3857" minx="913171"/>
131+
<BoundingBox maxy="8.20416" maxx="44.9016" miny="8.20315" CRS="EPSG:4326" minx="44.9012"/>
132132
<TreeName>QGIS Test Project</TreeName>
133133
<Layer geometryType="Point" queryable="1" displayField="name" visible="1">
134134
<Name>testlayer èé</Name>
@@ -143,21 +143,21 @@ Content-Type: text/xml; charset=utf-8
143143
<southBoundLatitude>44.9014</southBoundLatitude>
144144
<northBoundLatitude>44.9015</northBoundLatitude>
145145
</EX_GeographicBoundingBox>
146-
<BoundingBox CRS="EPSG:3857" minx="913205" maxx="913215" miny="5.60601e+06" maxy="5.60603e+06"/>
147-
<BoundingBox CRS="EPSG:4326" minx="44.9014" maxx="44.9015" miny="8.20346" maxy="8.20355"/>
146+
<BoundingBox maxy="5.60603e+06" maxx="913215" miny="5.60601e+06" CRS="EPSG:3857" minx="913205"/>
147+
<BoundingBox maxy="8.20355" maxx="44.9015" miny="8.20346" CRS="EPSG:4326" minx="44.9014"/>
148148
<Style>
149149
<Name>default</Name>
150150
<Title>default</Title>
151151
<LegendURL>
152152
<Format>image/png</Format>
153-
<OnlineResource xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http:?MAP=/home/ale/dev/QGIS/tests/testdata/qgis_server/test-project.qgs&amp;SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default&amp;SLD_VERSION=1.1.0"/>
153+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project.qgs&amp;SERVICE=WMS&amp;VERSION=1.3.0&amp;REQUEST=GetLegendGraphic&amp;LAYER=testlayer èé&amp;FORMAT=image/png&amp;STYLE=default&amp;SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink"/>
154154
</LegendURL>
155155
</Style>
156156
<TreeName>testlayer èé</TreeName>
157157
<Attributes>
158-
<Attribute typeName="Integer" comment="" type="int" editType="TextEdit" length="10" name="id" precision="0"/>
159-
<Attribute typeName="String" comment="" type="QString" editType="TextEdit" length="10" name="name" precision="0"/>
160-
<Attribute typeName="String" comment="" type="QString" editType="TextEdit" length="13" name="utf8nameè" precision="0"/>
158+
<Attribute precision="0" type="qlonglong" editType="" typeName="Integer64" name="id" comment="" length="10"/>
159+
<Attribute precision="0" type="QString" editType="" typeName="String" name="name" comment="" length="10"/>
160+
<Attribute precision="0" type="QString" editType="" typeName="String" name="utf8nameè" comment="" length="13"/>
161161
</Attributes>
162162
</Layer>
163163
</Layer>

‎tests/testdata/qgis_server/wcs_describecoverage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
1+
Content-Length: 1676
22
Content-Type: text/xml; charset=utf-8
33

4-
<CoverageDescription xmlns="http://www.opengis.net/wcs" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0.0" updateSequence="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd" xmlns:gml="http://www.opengis.net/gml">
4+
<CoverageDescription xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.opengis.net/wcs" xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/describeCoverage.xsd" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" updateSequence="0">
55
<CoverageOffering>
66
<name>dem</name>
77
<label>dem</label>
@@ -51,4 +51,4 @@ Content-Type: text/xml; charset=utf-8
5151
<formats>GeoTIFF</formats>
5252
</supportedFormats>
5353
</CoverageOffering>
54-
</CoverageDescription>
54+
</CoverageDescription>

‎tests/testdata/qgis_server/wcs_getcapabilities.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
1+
Content-Length: 2506
22
Content-Type: text/xml; charset=utf-8
33

4-
<WCS_Capabilities version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/wcsCapabilities.xsd" xmlns="http://www.opengis.net/wcs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" updateSequence="0" xmlns:gml="http://www.opengis.net/gml">
4+
<WCS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns="http://www.opengis.net/wcs" xsi:schemaLocation="http://www.opengis.net/wcs http://schemas.opengis.net/wcs/1.0.0/wcsCapabilities.xsd" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" updateSequence="0">
55
<Service>
66
<name>WCS</name>
77
<label>QGIS Server test</label>
@@ -22,14 +22,14 @@ Content-Type: text/xml; charset=utf-8
2222
<DCPType>
2323
<HTTP>
2424
<Get>
25-
<OnlineResource xlink:type="simple" xlink:href="?"/>
25+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
2626
</Get>
2727
</HTTP>
2828
</DCPType>
2929
<DCPType>
3030
<HTTP>
3131
<Post>
32-
<OnlineResource xlink:type="simple" xlink:href="?"/>
32+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
3333
</Post>
3434
</HTTP>
3535
</DCPType>
@@ -38,14 +38,14 @@ Content-Type: text/xml; charset=utf-8
3838
<DCPType>
3939
<HTTP>
4040
<Get>
41-
<OnlineResource xlink:type="simple" xlink:href="?"/>
41+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
4242
</Get>
4343
</HTTP>
4444
</DCPType>
4545
<DCPType>
4646
<HTTP>
4747
<Post>
48-
<OnlineResource xlink:type="simple" xlink:href="?"/>
48+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
4949
</Post>
5050
</HTTP>
5151
</DCPType>
@@ -54,14 +54,14 @@ Content-Type: text/xml; charset=utf-8
5454
<DCPType>
5555
<HTTP>
5656
<Get>
57-
<OnlineResource xlink:type="simple" xlink:href="?"/>
57+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
5858
</Get>
5959
</HTTP>
6060
</DCPType>
6161
<DCPType>
6262
<HTTP>
6363
<Post>
64-
<OnlineResource xlink:type="simple" xlink:href="?"/>
64+
<OnlineResource xlink:type="simple" xlink:href="?MAP=tests/testdata/qgis_server_accesscontrol/project.qgs"/>
6565
</Post>
6666
</HTTP>
6767
</DCPType>
@@ -78,4 +78,4 @@ Content-Type: text/xml; charset=utf-8
7878
</lonLatEnvelope>
7979
</CoverageOfferingBrief>
8080
</ContentMetadata>
81-
</WCS_Capabilities>
81+
</WCS_Capabilities>

‎tests/testdata/qgis_server/wfs_describefeaturetype.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Content-Length: 913
22
Content-Type: text/xml; charset=utf-8
33

4-
<schema xmlns:ogc="http://www.opengis.net/ogc" elementFormDefault="qualified" targetNamespace="http://www.qgis.org/gml" version="1.0" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:qgs="http://www.qgis.org/gml">
4+
<schema xmlns:gml="http://www.opengis.net/gml" targetNamespace="http://www.qgis.org/gml" xmlns:qgs="http://www.qgis.org/gml" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ogc="http://www.opengis.net/ogc" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
55
<import namespace="http://www.opengis.net/gml" schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/>
66
<element type="qgs:testlayerType" name="testlayer" substitutionGroup="gml:_Feature"/>
77
<complexType name="testlayerType">
88
<complexContent>
99
<extension base="gml:AbstractFeatureType">
1010
<sequence>
11-
<element minOccurs="0" maxOccurs="1" type="gml:GeometryPropertyType" name="geometry"/>
11+
<element maxOccurs="1" type="gml:GeometryPropertyType" minOccurs="0" name="geometry"/>
1212
<element type="long" name="id"/>
1313
<element type="string" name="name"/>
1414
<element type="string" name="utf8nameè"/>

‎tests/testdata/qgis_server/wfs_getcapabilities.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
Content-Length: 2781
1+
Content-Length: 3001
22
Content-Type: text/xml; charset=utf-8
33

4-
<WFS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" xmlns="http://www.opengis.net/wfs" updateSequence="0" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows">
4+
<WFS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns="http://www.opengis.net/wfs" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd" xmlns:ogc="http://www.opengis.net/ogc" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" updateSequence="0">
55
<Service>
66
<Name>WFS</Name>
77
<Title>QGIS TestProject</Title>
8-
<Abstract>Some UTF8 text èòù</Abstract>
8+
<Abstract><![CDATA[Some UTF8 text èòù]]></Abstract>
99
<OnlineResource/>
1010
</Service>
1111
<Capability>
1212
<Request>
1313
<GetCapabilities>
1414
<DCPType>
1515
<HTTP>
16-
<Get onlineResource="?"/>
16+
<Get onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
1717
</HTTP>
1818
</DCPType>
1919
<DCPType>
2020
<HTTP>
21-
<Post onlineResource="?"/>
21+
<Post onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
2222
</HTTP>
2323
</DCPType>
2424
</GetCapabilities>
@@ -28,12 +28,12 @@ Content-Type: text/xml; charset=utf-8
2828
</SchemaDescriptionLanguage>
2929
<DCPType>
3030
<HTTP>
31-
<Get onlineResource="?"/>
31+
<Get onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
3232
</HTTP>
3333
</DCPType>
3434
<DCPType>
3535
<HTTP>
36-
<Post onlineResource="?"/>
36+
<Post onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
3737
</HTTP>
3838
</DCPType>
3939
</DescribeFeatureType>
@@ -45,19 +45,19 @@ Content-Type: text/xml; charset=utf-8
4545
</ResultFormat>
4646
<DCPType>
4747
<HTTP>
48-
<Get onlineResource="?"/>
48+
<Get onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
4949
</HTTP>
5050
</DCPType>
5151
<DCPType>
5252
<HTTP>
53-
<Post onlineResource="?"/>
53+
<Post onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
5454
</HTTP>
5555
</DCPType>
5656
</GetFeature>
5757
<Transaction>
5858
<DCPType>
5959
<HTTP>
60-
<Post onlineResource="?"/>
60+
<Post onlineResource="?MAP=tests/testdata/qgis_server/test_project_wfs.qgs"/>
6161
</HTTP>
6262
</DCPType>
6363
</Transaction>
@@ -72,7 +72,7 @@ Content-Type: text/xml; charset=utf-8
7272
<Title>A test vector layer</Title>
7373
<Abstract>A test vector layer with unicode òà</Abstract>
7474
<SRS>EPSG:4326</SRS>
75-
<LatLongBoundingBox maxx="8.20355" minx="8.20346" maxy="44.9015" miny="44.9014"/>
75+
<LatLongBoundingBox maxy="44.9015" maxx="8.20355" miny="44.9014" minx="8.20346"/>
7676
<Operations>
7777
<Query/>
7878
<Insert/>

‎tests/testdata/qgis_server/wfs_getfeature_limit2.txt

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

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>
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>
44
<gml:Box srsName="EPSG:4326">
5-
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates>
5+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20354699,44.90148253</gml:coordinates>
66
</gml:Box>
77
</gml:boundedBy>
88
<gml:featureMember>
@@ -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" cs="," ts=" ">8.20349634,44.90148253</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml">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" cs="," ts=" ">8.20354699,44.90143568</coordinates>
34+
<coordinates xmlns="http://www.opengis.net/gml">8.20354699,44.90143568</coordinates>
3535
</Point>
3636
</qgs:geometry>
3737
<qgs:id>2</qgs:id>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 ?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.0">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:4326">
12+
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253 8.20349634,44.90148253</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">8.20349634,44.90148253</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: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">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+
</wfs:FeatureCollection>

‎tests/testdata/qgis_server/wfs_getfeature_nobbox.txt

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

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>
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>
44
<gml:Box srsName="EPSG:4326">
5-
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates>
5+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20354699,44.90148253</gml:coordinates>
66
</gml:Box>
77
</gml:boundedBy>
88
<gml:featureMember>
@@ -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" cs="," ts=" ">8.20349634,44.90148253</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml">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" cs="," ts=" ">8.20354699,44.90143568</coordinates>
34+
<coordinates xmlns="http://www.opengis.net/gml">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" cs="," ts=" ">8.20345931,44.90139484</coordinates>
51+
<coordinates xmlns="http://www.opengis.net/gml">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; 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.0">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:4326">
12+
<gml:coordinates cs="," ts=" ">8.20349634,44.90148253 8.20349634,44.90148253</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">8.20349634,44.90148253</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: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">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.2">
44+
<gml:boundedBy>
45+
<gml:Box srsName="EPSG:4326">
46+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20345931,44.90139484</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">8.20345931,44.90139484</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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Content-Type: text/xml; charset=utf-8
22

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>
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>
44
<gml:Box srsName="EPSG:4326">
5-
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates>
5+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20354699,44.90148253</gml:coordinates>
66
</gml:Box>
77
</gml:boundedBy>
88
<gml:featureMember>
@@ -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" cs="," ts=" ">8.20354699,44.90143568</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml">8.20354699,44.90143568</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>2</qgs:id>
Lines changed: 25 additions & 0 deletions
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 ?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.1">
10+
<gml:boundedBy>
11+
<gml:Box srsName="EPSG:4326">
12+
<gml:coordinates cs="," ts=" ">8.20354699,44.90143568 8.20354699,44.90143568</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">8.20354699,44.90143568</coordinates>
18+
</Point>
19+
</qgs:geometry>
20+
<qgs:id>2</qgs:id>
21+
<qgs:name>two</qgs:name>
22+
<qgs:utf8nameè>two àò</qgs:utf8nameè>
23+
</qgs:testlayer>
24+
</gml:featureMember>
25+
</wfs:FeatureCollection>

‎tests/testdata/qgis_server/wfs_getfeature_startindex2.txt

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

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>
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>
44
<gml:Box srsName="EPSG:4326">
5-
<gml:coordinates cs="," ts=" ">8.2034593,44.90139483 8.203547,44.90148254</gml:coordinates>
5+
<gml:coordinates cs="," ts=" ">8.20345931,44.90139484 8.20354699,44.90148253</gml:coordinates>
66
</gml:Box>
77
</gml:boundedBy>
88
<gml:featureMember>
@@ -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" cs="," ts=" ">8.20345931,44.90139484</coordinates>
17+
<coordinates xmlns="http://www.opengis.net/gml">8.20345931,44.90139484</coordinates>
1818
</Point>
1919
</qgs:geometry>
2020
<qgs:id>3</qgs:id>
Lines changed: 25 additions & 0 deletions
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 ?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">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+
</wfs:FeatureCollection>

‎tests/testdata/qgis_server/wms_getfeatureinfo-text-html.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Content-Length: 360
1+
Content-Length: 512
22
Content-Type: text/html; charset=utf-8
33

44
<HEAD>

‎tests/testdata/qgis_server/wms_getfeatureinfo_filter.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ Content-Length: 577
22
Content-Type: text/xml; charset=utf-8
33

44
<GetFeatureInfoResponse>
5-
<BoundingBox CRS="EPSG:3857" maxx="913214.67407005" minx="913214.67407005" maxy="5606017.87425818" miny="5606017.87425818"/>
5+
<BoundingBox maxy="5606017.87425818" maxx="913214.67407005" miny="5606017.87425818" CRS="EPSG:3857" minx="913214.67407005"/>
66
<Layer name="testlayer èé">
77
<Feature id="1">
88
<Attribute value="2" name="id"/>
99
<Attribute value="two" name="name"/>
1010
<Attribute value="two àò" name="utf8nameè"/>
11-
<BoundingBox CRS="EPSG:3857" maxx="913214.6741" minx="913214.6741" maxy="5606017.8743" miny="5606017.8743"/>
12-
<Attribute value="Point (913214.6741 5606017.8743)" type="derived" name="geometry"/>
11+
<BoundingBox maxy="5606017.8743" maxx="913214.6741" miny="5606017.8743" CRS="EPSG:3857" minx="913214.6741"/>
12+
<Attribute type="derived" value="Point (913214.6741 5606017.8743)" name="geometry"/>
1313
</Feature>
1414
</Layer>
1515
</GetFeatureInfoResponse>

0 commit comments

Comments
 (0)
Please sign in to comment.