Skip to content

Commit 4962953

Browse files
pblottiererldhont
authored andcommittedMay 2, 2018
Add unit tests
1 parent 1636e6a commit 4962953

File tree

3 files changed

+929
-0
lines changed

3 files changed

+929
-0
lines changed
 

‎tests/src/python/test_qgsserver_wms.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,23 @@ def test_project_wms_inspire(self):
306306
for request in ('GetCapabilities',):
307307
self.wms_inspire_request_compare(request)
308308

309+
def test_wms_getcapabilities_without_title(self):
310+
# Empty title in project leads to a Layer element without Name, Title
311+
# and Abstract tags. However, it should still have a CRS and a BBOX
312+
# according to OGC specifications tests.
313+
project = os.path.join(self.testdata_path, "test_project_without_title.qgs")
314+
qs = "?" + "&".join(["%s=%s" % i for i in list({
315+
"MAP": urllib.parse.quote(project),
316+
"SERVICE": "WMS",
317+
"VERSION": "1.3.0",
318+
"REQUEST": "GetCapabilities",
319+
"STYLES": ""
320+
}.items())])
321+
322+
r, h = self._result(self._execute_request(qs))
323+
324+
self.wms_request_compare('GetCapabilities', reference_file='wms_getcapabilities_without_title', project='test_project_without_title.qgs')
325+
309326
def test_wms_getcapabilities_url(self):
310327
# empty url in project
311328
project = os.path.join(self.testdata_path, "test_project_without_urls.qgs")
Lines changed: 781 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,781 @@
1+
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
2+
<qgis projectname="" version="3.1.0-Master">
3+
<homePath path=""/>
4+
<title></title>
5+
<autotransaction active="0"/>
6+
<evaluateDefaultValues active="0"/>
7+
<trust active="0"/>
8+
<projectCrs>
9+
<spatialrefsys>
10+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
11+
<srsid>3452</srsid>
12+
<srid>4326</srid>
13+
<authid>EPSG:4326</authid>
14+
<description>WGS 84</description>
15+
<projectionacronym>longlat</projectionacronym>
16+
<ellipsoidacronym>WGS84</ellipsoidacronym>
17+
<geographicflag>true</geographicflag>
18+
</spatialrefsys>
19+
</projectCrs>
20+
<layer-tree-group>
21+
<customproperties/>
22+
<layer-tree-layer id="france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87" name="france_parts" checked="Qt::Checked" expanded="1" source="../france_parts.shp" providerKey="ogr">
23+
<customproperties/>
24+
</layer-tree-layer>
25+
<custom-order enabled="0">
26+
<item>france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87</item>
27+
</custom-order>
28+
</layer-tree-group>
29+
<snapping-settings mode="2" unit="2" enabled="0" tolerance="0" intersection-snapping="0" type="1">
30+
<individual-layer-settings>
31+
<layer-setting id="france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87" units="1" enabled="1" tolerance="10" type="2"/>
32+
</individual-layer-settings>
33+
</snapping-settings>
34+
<relations/>
35+
<mapcanvas name="theMapCanvas" annotationsVisible="1">
36+
<units>degrees</units>
37+
<extent>
38+
<xmin>-5.33889081436202328</xmin>
39+
<ymin>46.19300890773994439</ymin>
40+
<xmax>3.32419280355761426</xmax>
41+
<ymax>49.81265618522981953</ymax>
42+
</extent>
43+
<rotation>0</rotation>
44+
<destinationsrs>
45+
<spatialrefsys>
46+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
47+
<srsid>3452</srsid>
48+
<srid>4326</srid>
49+
<authid>EPSG:4326</authid>
50+
<description>WGS 84</description>
51+
<projectionacronym>longlat</projectionacronym>
52+
<ellipsoidacronym>WGS84</ellipsoidacronym>
53+
<geographicflag>true</geographicflag>
54+
</spatialrefsys>
55+
</destinationsrs>
56+
<rendermaptile>0</rendermaptile>
57+
</mapcanvas>
58+
<legend updateDrawingOrder="true">
59+
<legendlayer open="true" checked="Qt::Checked" name="france_parts" showFeatureCount="0" drawingOrder="-1">
60+
<filegroup open="true" hidden="false">
61+
<legendlayerfile isInOverview="0" layerid="france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87" visible="1"/>
62+
</filegroup>
63+
</legendlayer>
64+
</legend>
65+
<mapViewDocks/>
66+
<mapcanvas name="mAreaCanvas" annotationsVisible="1">
67+
<units>degrees</units>
68+
<extent>
69+
<xmin>0</xmin>
70+
<ymin>0</ymin>
71+
<xmax>0</xmax>
72+
<ymax>0</ymax>
73+
</extent>
74+
<rotation>0</rotation>
75+
<destinationsrs>
76+
<spatialrefsys>
77+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
78+
<srsid>3452</srsid>
79+
<srid>4326</srid>
80+
<authid>EPSG:4326</authid>
81+
<description>WGS 84</description>
82+
<projectionacronym>longlat</projectionacronym>
83+
<ellipsoidacronym>WGS84</ellipsoidacronym>
84+
<geographicflag>true</geographicflag>
85+
</spatialrefsys>
86+
</destinationsrs>
87+
<rendermaptile>0</rendermaptile>
88+
</mapcanvas>
89+
<mapcanvas name="mAreaCanvas" annotationsVisible="1">
90+
<units>degrees</units>
91+
<extent>
92+
<xmin>0</xmin>
93+
<ymin>0</ymin>
94+
<xmax>0</xmax>
95+
<ymax>0</ymax>
96+
</extent>
97+
<rotation>0</rotation>
98+
<destinationsrs>
99+
<spatialrefsys>
100+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
101+
<srsid>3452</srsid>
102+
<srid>4326</srid>
103+
<authid>EPSG:4326</authid>
104+
<description>WGS 84</description>
105+
<projectionacronym>longlat</projectionacronym>
106+
<ellipsoidacronym>WGS84</ellipsoidacronym>
107+
<geographicflag>true</geographicflag>
108+
</spatialrefsys>
109+
</destinationsrs>
110+
<rendermaptile>0</rendermaptile>
111+
</mapcanvas>
112+
<mapcanvas name="mAreaCanvas" annotationsVisible="1">
113+
<units>degrees</units>
114+
<extent>
115+
<xmin>0</xmin>
116+
<ymin>0</ymin>
117+
<xmax>0</xmax>
118+
<ymax>0</ymax>
119+
</extent>
120+
<rotation>0</rotation>
121+
<destinationsrs>
122+
<spatialrefsys>
123+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
124+
<srsid>3452</srsid>
125+
<srid>4326</srid>
126+
<authid>EPSG:4326</authid>
127+
<description>WGS 84</description>
128+
<projectionacronym>longlat</projectionacronym>
129+
<ellipsoidacronym>WGS84</ellipsoidacronym>
130+
<geographicflag>true</geographicflag>
131+
</spatialrefsys>
132+
</destinationsrs>
133+
<rendermaptile>0</rendermaptile>
134+
</mapcanvas>
135+
<projectlayers>
136+
<maplayer minScale="1e+8" refreshOnNotifyMessage="" simplifyDrawingHints="1" simplifyAlgorithm="0" geometry="Polygon" simplifyDrawingTol="1" simplifyLocal="1" labelsEnabled="0" hasScaleBasedVisibilityFlag="0" autoRefreshTime="0" autoRefreshEnabled="0" type="vector" simplifyMaxScale="1" refreshOnNotifyEnabled="0" readOnly="0" maxScale="0">
137+
<extent>
138+
<xmin>-5.1326269186972695</xmin>
139+
<ymin>46.2791909857754149</ymin>
140+
<xmax>3.11792890789286048</xmax>
141+
<ymax>49.72647410719434902</ymax>
142+
</extent>
143+
<id>france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87</id>
144+
<datasource>../france_parts.shp</datasource>
145+
<keywordList>
146+
<value></value>
147+
</keywordList>
148+
<layername>france_parts</layername>
149+
<srs>
150+
<spatialrefsys>
151+
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
152+
<srsid>3452</srsid>
153+
<srid>4326</srid>
154+
<authid>EPSG:4326</authid>
155+
<description>WGS 84</description>
156+
<projectionacronym>longlat</projectionacronym>
157+
<ellipsoidacronym>WGS84</ellipsoidacronym>
158+
<geographicflag>true</geographicflag>
159+
</spatialrefsys>
160+
</srs>
161+
<resourceMetadata>
162+
<identifier></identifier>
163+
<parentidentifier></parentidentifier>
164+
<language></language>
165+
<type></type>
166+
<title></title>
167+
<abstract></abstract>
168+
<links/>
169+
<fees></fees>
170+
<encoding></encoding>
171+
<crs>
172+
<spatialrefsys>
173+
<proj4></proj4>
174+
<srsid>0</srsid>
175+
<srid>0</srid>
176+
<authid></authid>
177+
<description></description>
178+
<projectionacronym></projectionacronym>
179+
<ellipsoidacronym></ellipsoidacronym>
180+
<geographicflag>false</geographicflag>
181+
</spatialrefsys>
182+
</crs>
183+
<extent/>
184+
</resourceMetadata>
185+
<provider encoding="UTF-8">ogr</provider>
186+
<vectorjoins/>
187+
<layerDependencies/>
188+
<dataDependencies/>
189+
<legend type="default-vector"/>
190+
<expressionfields/>
191+
<map-layer-style-manager current="default">
192+
<map-layer-style name="default"/>
193+
</map-layer-style-manager>
194+
<auxiliaryLayer/>
195+
<renderer-v2 symbollevels="0" forceraster="0" type="singleSymbol" enableorderby="0">
196+
<symbols>
197+
<symbol clip_to_extent="1" name="0" alpha="1" type="fill">
198+
<layer enabled="1" class="SimpleFill" pass="0" locked="0">
199+
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/>
200+
<prop v="232,113,141,255" k="color"/>
201+
<prop v="bevel" k="joinstyle"/>
202+
<prop v="0,0" k="offset"/>
203+
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/>
204+
<prop v="MM" k="offset_unit"/>
205+
<prop v="35,35,35,255" k="outline_color"/>
206+
<prop v="solid" k="outline_style"/>
207+
<prop v="0.26" k="outline_width"/>
208+
<prop v="MM" k="outline_width_unit"/>
209+
<prop v="solid" k="style"/>
210+
<data_defined_properties>
211+
<Option type="Map">
212+
<Option name="name" value="" type="QString"/>
213+
<Option name="properties"/>
214+
<Option name="type" value="collection" type="QString"/>
215+
</Option>
216+
</data_defined_properties>
217+
</layer>
218+
</symbol>
219+
</symbols>
220+
<rotation/>
221+
<sizescale/>
222+
</renderer-v2>
223+
<customproperties/>
224+
<blendMode>0</blendMode>
225+
<featureBlendMode>0</featureBlendMode>
226+
<layerOpacity>1</layerOpacity>
227+
<fieldConfiguration>
228+
<field name="OBJECTID">
229+
<editWidget type="">
230+
<config>
231+
<Option/>
232+
</config>
233+
</editWidget>
234+
</field>
235+
<field name="VertexCou">
236+
<editWidget type="">
237+
<config>
238+
<Option/>
239+
</config>
240+
</editWidget>
241+
</field>
242+
<field name="ISO">
243+
<editWidget type="">
244+
<config>
245+
<Option/>
246+
</config>
247+
</editWidget>
248+
</field>
249+
<field name="NAME_0">
250+
<editWidget type="">
251+
<config>
252+
<Option/>
253+
</config>
254+
</editWidget>
255+
</field>
256+
<field name="NAME_1">
257+
<editWidget type="">
258+
<config>
259+
<Option/>
260+
</config>
261+
</editWidget>
262+
</field>
263+
<field name="VARNAME_1">
264+
<editWidget type="">
265+
<config>
266+
<Option/>
267+
</config>
268+
</editWidget>
269+
</field>
270+
<field name="NL_NAME_1">
271+
<editWidget type="">
272+
<config>
273+
<Option/>
274+
</config>
275+
</editWidget>
276+
</field>
277+
<field name="HASC_1">
278+
<editWidget type="">
279+
<config>
280+
<Option/>
281+
</config>
282+
</editWidget>
283+
</field>
284+
<field name="TYPE_1">
285+
<editWidget type="">
286+
<config>
287+
<Option/>
288+
</config>
289+
</editWidget>
290+
</field>
291+
<field name="ENGTYPE_1">
292+
<editWidget type="">
293+
<config>
294+
<Option/>
295+
</config>
296+
</editWidget>
297+
</field>
298+
<field name="VALIDFR_1">
299+
<editWidget type="">
300+
<config>
301+
<Option/>
302+
</config>
303+
</editWidget>
304+
</field>
305+
<field name="VALIDTO_1">
306+
<editWidget type="">
307+
<config>
308+
<Option/>
309+
</config>
310+
</editWidget>
311+
</field>
312+
<field name="REMARKS_1">
313+
<editWidget type="">
314+
<config>
315+
<Option/>
316+
</config>
317+
</editWidget>
318+
</field>
319+
<field name="Region">
320+
<editWidget type="">
321+
<config>
322+
<Option/>
323+
</config>
324+
</editWidget>
325+
</field>
326+
<field name="RegionVar">
327+
<editWidget type="">
328+
<config>
329+
<Option/>
330+
</config>
331+
</editWidget>
332+
</field>
333+
<field name="ProvNumber">
334+
<editWidget type="">
335+
<config>
336+
<Option/>
337+
</config>
338+
</editWidget>
339+
</field>
340+
<field name="NEV_Countr">
341+
<editWidget type="">
342+
<config>
343+
<Option/>
344+
</config>
345+
</editWidget>
346+
</field>
347+
<field name="FIRST_FIPS">
348+
<editWidget type="">
349+
<config>
350+
<Option/>
351+
</config>
352+
</editWidget>
353+
</field>
354+
<field name="FIRST_HASC">
355+
<editWidget type="">
356+
<config>
357+
<Option/>
358+
</config>
359+
</editWidget>
360+
</field>
361+
<field name="FIPS_1">
362+
<editWidget type="">
363+
<config>
364+
<Option/>
365+
</config>
366+
</editWidget>
367+
</field>
368+
<field name="gadm_level">
369+
<editWidget type="">
370+
<config>
371+
<Option/>
372+
</config>
373+
</editWidget>
374+
</field>
375+
<field name="CheckMe">
376+
<editWidget type="">
377+
<config>
378+
<Option/>
379+
</config>
380+
</editWidget>
381+
</field>
382+
<field name="Region_Cod">
383+
<editWidget type="">
384+
<config>
385+
<Option/>
386+
</config>
387+
</editWidget>
388+
</field>
389+
<field name="Region_C_1">
390+
<editWidget type="">
391+
<config>
392+
<Option/>
393+
</config>
394+
</editWidget>
395+
</field>
396+
<field name="ScaleRank">
397+
<editWidget type="">
398+
<config>
399+
<Option/>
400+
</config>
401+
</editWidget>
402+
</field>
403+
<field name="Region_C_2">
404+
<editWidget type="">
405+
<config>
406+
<Option/>
407+
</config>
408+
</editWidget>
409+
</field>
410+
<field name="Region_C_3">
411+
<editWidget type="">
412+
<config>
413+
<Option/>
414+
</config>
415+
</editWidget>
416+
</field>
417+
<field name="Country_Pr">
418+
<editWidget type="">
419+
<config>
420+
<Option/>
421+
</config>
422+
</editWidget>
423+
</field>
424+
<field name="DataRank">
425+
<editWidget type="">
426+
<config>
427+
<Option/>
428+
</config>
429+
</editWidget>
430+
</field>
431+
<field name="Abbrev">
432+
<editWidget type="">
433+
<config>
434+
<Option/>
435+
</config>
436+
</editWidget>
437+
</field>
438+
<field name="Postal">
439+
<editWidget type="">
440+
<config>
441+
<Option/>
442+
</config>
443+
</editWidget>
444+
</field>
445+
<field name="Area_sqkm">
446+
<editWidget type="">
447+
<config>
448+
<Option/>
449+
</config>
450+
</editWidget>
451+
</field>
452+
<field name="sameAsCity">
453+
<editWidget type="">
454+
<config>
455+
<Option/>
456+
</config>
457+
</editWidget>
458+
</field>
459+
<field name="ADM0_A3">
460+
<editWidget type="">
461+
<config>
462+
<Option/>
463+
</config>
464+
</editWidget>
465+
</field>
466+
<field name="MAP_COLOR">
467+
<editWidget type="">
468+
<config>
469+
<Option/>
470+
</config>
471+
</editWidget>
472+
</field>
473+
<field name="LabelRank">
474+
<editWidget type="">
475+
<config>
476+
<Option/>
477+
</config>
478+
</editWidget>
479+
</field>
480+
<field name="Shape_Leng">
481+
<editWidget type="">
482+
<config>
483+
<Option/>
484+
</config>
485+
</editWidget>
486+
</field>
487+
<field name="Shape_Area">
488+
<editWidget type="">
489+
<config>
490+
<Option/>
491+
</config>
492+
</editWidget>
493+
</field>
494+
</fieldConfiguration>
495+
<aliases>
496+
<alias field="OBJECTID" name="" index="0"/>
497+
<alias field="VertexCou" name="" index="1"/>
498+
<alias field="ISO" name="" index="2"/>
499+
<alias field="NAME_0" name="" index="3"/>
500+
<alias field="NAME_1" name="" index="4"/>
501+
<alias field="VARNAME_1" name="" index="5"/>
502+
<alias field="NL_NAME_1" name="" index="6"/>
503+
<alias field="HASC_1" name="" index="7"/>
504+
<alias field="TYPE_1" name="" index="8"/>
505+
<alias field="ENGTYPE_1" name="" index="9"/>
506+
<alias field="VALIDFR_1" name="" index="10"/>
507+
<alias field="VALIDTO_1" name="" index="11"/>
508+
<alias field="REMARKS_1" name="" index="12"/>
509+
<alias field="Region" name="" index="13"/>
510+
<alias field="RegionVar" name="" index="14"/>
511+
<alias field="ProvNumber" name="" index="15"/>
512+
<alias field="NEV_Countr" name="" index="16"/>
513+
<alias field="FIRST_FIPS" name="" index="17"/>
514+
<alias field="FIRST_HASC" name="" index="18"/>
515+
<alias field="FIPS_1" name="" index="19"/>
516+
<alias field="gadm_level" name="" index="20"/>
517+
<alias field="CheckMe" name="" index="21"/>
518+
<alias field="Region_Cod" name="" index="22"/>
519+
<alias field="Region_C_1" name="" index="23"/>
520+
<alias field="ScaleRank" name="" index="24"/>
521+
<alias field="Region_C_2" name="" index="25"/>
522+
<alias field="Region_C_3" name="" index="26"/>
523+
<alias field="Country_Pr" name="" index="27"/>
524+
<alias field="DataRank" name="" index="28"/>
525+
<alias field="Abbrev" name="" index="29"/>
526+
<alias field="Postal" name="" index="30"/>
527+
<alias field="Area_sqkm" name="" index="31"/>
528+
<alias field="sameAsCity" name="" index="32"/>
529+
<alias field="ADM0_A3" name="" index="33"/>
530+
<alias field="MAP_COLOR" name="" index="34"/>
531+
<alias field="LabelRank" name="" index="35"/>
532+
<alias field="Shape_Leng" name="" index="36"/>
533+
<alias field="Shape_Area" name="" index="37"/>
534+
</aliases>
535+
<excludeAttributesWMS/>
536+
<excludeAttributesWFS/>
537+
<defaults>
538+
<default field="OBJECTID" expression="" applyOnUpdate="0"/>
539+
<default field="VertexCou" expression="" applyOnUpdate="0"/>
540+
<default field="ISO" expression="" applyOnUpdate="0"/>
541+
<default field="NAME_0" expression="" applyOnUpdate="0"/>
542+
<default field="NAME_1" expression="" applyOnUpdate="0"/>
543+
<default field="VARNAME_1" expression="" applyOnUpdate="0"/>
544+
<default field="NL_NAME_1" expression="" applyOnUpdate="0"/>
545+
<default field="HASC_1" expression="" applyOnUpdate="0"/>
546+
<default field="TYPE_1" expression="" applyOnUpdate="0"/>
547+
<default field="ENGTYPE_1" expression="" applyOnUpdate="0"/>
548+
<default field="VALIDFR_1" expression="" applyOnUpdate="0"/>
549+
<default field="VALIDTO_1" expression="" applyOnUpdate="0"/>
550+
<default field="REMARKS_1" expression="" applyOnUpdate="0"/>
551+
<default field="Region" expression="" applyOnUpdate="0"/>
552+
<default field="RegionVar" expression="" applyOnUpdate="0"/>
553+
<default field="ProvNumber" expression="" applyOnUpdate="0"/>
554+
<default field="NEV_Countr" expression="" applyOnUpdate="0"/>
555+
<default field="FIRST_FIPS" expression="" applyOnUpdate="0"/>
556+
<default field="FIRST_HASC" expression="" applyOnUpdate="0"/>
557+
<default field="FIPS_1" expression="" applyOnUpdate="0"/>
558+
<default field="gadm_level" expression="" applyOnUpdate="0"/>
559+
<default field="CheckMe" expression="" applyOnUpdate="0"/>
560+
<default field="Region_Cod" expression="" applyOnUpdate="0"/>
561+
<default field="Region_C_1" expression="" applyOnUpdate="0"/>
562+
<default field="ScaleRank" expression="" applyOnUpdate="0"/>
563+
<default field="Region_C_2" expression="" applyOnUpdate="0"/>
564+
<default field="Region_C_3" expression="" applyOnUpdate="0"/>
565+
<default field="Country_Pr" expression="" applyOnUpdate="0"/>
566+
<default field="DataRank" expression="" applyOnUpdate="0"/>
567+
<default field="Abbrev" expression="" applyOnUpdate="0"/>
568+
<default field="Postal" expression="" applyOnUpdate="0"/>
569+
<default field="Area_sqkm" expression="" applyOnUpdate="0"/>
570+
<default field="sameAsCity" expression="" applyOnUpdate="0"/>
571+
<default field="ADM0_A3" expression="" applyOnUpdate="0"/>
572+
<default field="MAP_COLOR" expression="" applyOnUpdate="0"/>
573+
<default field="LabelRank" expression="" applyOnUpdate="0"/>
574+
<default field="Shape_Leng" expression="" applyOnUpdate="0"/>
575+
<default field="Shape_Area" expression="" applyOnUpdate="0"/>
576+
</defaults>
577+
<constraints>
578+
<constraint field="OBJECTID" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
579+
<constraint field="VertexCou" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
580+
<constraint field="ISO" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
581+
<constraint field="NAME_0" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
582+
<constraint field="NAME_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
583+
<constraint field="VARNAME_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
584+
<constraint field="NL_NAME_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
585+
<constraint field="HASC_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
586+
<constraint field="TYPE_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
587+
<constraint field="ENGTYPE_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
588+
<constraint field="VALIDFR_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
589+
<constraint field="VALIDTO_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
590+
<constraint field="REMARKS_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
591+
<constraint field="Region" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
592+
<constraint field="RegionVar" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
593+
<constraint field="ProvNumber" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
594+
<constraint field="NEV_Countr" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
595+
<constraint field="FIRST_FIPS" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
596+
<constraint field="FIRST_HASC" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
597+
<constraint field="FIPS_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
598+
<constraint field="gadm_level" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
599+
<constraint field="CheckMe" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
600+
<constraint field="Region_Cod" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
601+
<constraint field="Region_C_1" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
602+
<constraint field="ScaleRank" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
603+
<constraint field="Region_C_2" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
604+
<constraint field="Region_C_3" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
605+
<constraint field="Country_Pr" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
606+
<constraint field="DataRank" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
607+
<constraint field="Abbrev" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
608+
<constraint field="Postal" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
609+
<constraint field="Area_sqkm" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
610+
<constraint field="sameAsCity" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
611+
<constraint field="ADM0_A3" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
612+
<constraint field="MAP_COLOR" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
613+
<constraint field="LabelRank" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
614+
<constraint field="Shape_Leng" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
615+
<constraint field="Shape_Area" constraints="0" exp_strength="0" unique_strength="0" notnull_strength="0"/>
616+
</constraints>
617+
<constraintExpressions>
618+
<constraint field="OBJECTID" desc="" exp=""/>
619+
<constraint field="VertexCou" desc="" exp=""/>
620+
<constraint field="ISO" desc="" exp=""/>
621+
<constraint field="NAME_0" desc="" exp=""/>
622+
<constraint field="NAME_1" desc="" exp=""/>
623+
<constraint field="VARNAME_1" desc="" exp=""/>
624+
<constraint field="NL_NAME_1" desc="" exp=""/>
625+
<constraint field="HASC_1" desc="" exp=""/>
626+
<constraint field="TYPE_1" desc="" exp=""/>
627+
<constraint field="ENGTYPE_1" desc="" exp=""/>
628+
<constraint field="VALIDFR_1" desc="" exp=""/>
629+
<constraint field="VALIDTO_1" desc="" exp=""/>
630+
<constraint field="REMARKS_1" desc="" exp=""/>
631+
<constraint field="Region" desc="" exp=""/>
632+
<constraint field="RegionVar" desc="" exp=""/>
633+
<constraint field="ProvNumber" desc="" exp=""/>
634+
<constraint field="NEV_Countr" desc="" exp=""/>
635+
<constraint field="FIRST_FIPS" desc="" exp=""/>
636+
<constraint field="FIRST_HASC" desc="" exp=""/>
637+
<constraint field="FIPS_1" desc="" exp=""/>
638+
<constraint field="gadm_level" desc="" exp=""/>
639+
<constraint field="CheckMe" desc="" exp=""/>
640+
<constraint field="Region_Cod" desc="" exp=""/>
641+
<constraint field="Region_C_1" desc="" exp=""/>
642+
<constraint field="ScaleRank" desc="" exp=""/>
643+
<constraint field="Region_C_2" desc="" exp=""/>
644+
<constraint field="Region_C_3" desc="" exp=""/>
645+
<constraint field="Country_Pr" desc="" exp=""/>
646+
<constraint field="DataRank" desc="" exp=""/>
647+
<constraint field="Abbrev" desc="" exp=""/>
648+
<constraint field="Postal" desc="" exp=""/>
649+
<constraint field="Area_sqkm" desc="" exp=""/>
650+
<constraint field="sameAsCity" desc="" exp=""/>
651+
<constraint field="ADM0_A3" desc="" exp=""/>
652+
<constraint field="MAP_COLOR" desc="" exp=""/>
653+
<constraint field="LabelRank" desc="" exp=""/>
654+
<constraint field="Shape_Leng" desc="" exp=""/>
655+
<constraint field="Shape_Area" desc="" exp=""/>
656+
</constraintExpressions>
657+
<attributeactions>
658+
<defaultAction value="{00000000-0000-0000-0000-000000000000}" key="Canvas"/>
659+
</attributeactions>
660+
<attributetableconfig sortOrder="0" actionWidgetStyle="dropDown" sortExpression="">
661+
<columns/>
662+
</attributetableconfig>
663+
<editform></editform>
664+
<editforminit/>
665+
<editforminitcodesource>0</editforminitcodesource>
666+
<editforminitfilepath></editforminitfilepath>
667+
<editforminitcode><![CDATA[]]></editforminitcode>
668+
<featformsuppress>0</featformsuppress>
669+
<editorlayout>generatedlayout</editorlayout>
670+
<editable/>
671+
<labelOnTop/>
672+
<widgets/>
673+
<conditionalstyles>
674+
<rowstyles/>
675+
<fieldstyles/>
676+
</conditionalstyles>
677+
<expressionfields/>
678+
<previewExpression></previewExpression>
679+
<mapTip></mapTip>
680+
</maplayer>
681+
</projectlayers>
682+
<layerorder>
683+
<layer id="france_parts_571c9cdc_54fb_4fe1_8657_bbc58a767b87"/>
684+
</layerorder>
685+
<properties>
686+
<WMSMaxHeight type="int">5000</WMSMaxHeight>
687+
<WCSLayers type="QStringList"/>
688+
<WMSServiceTitle type="QString"></WMSServiceTitle>
689+
<WMSContactMail type="QString"></WMSContactMail>
690+
<WFSTLayers>
691+
<Delete type="QStringList"/>
692+
<Insert type="QStringList"/>
693+
<Update type="QStringList"/>
694+
</WFSTLayers>
695+
<SpatialRefSys>
696+
<ProjectCrs type="QString">EPSG:4326</ProjectCrs>
697+
<ProjectCRSID type="int">3452</ProjectCRSID>
698+
<ProjectionsEnabled type="int">1</ProjectionsEnabled>
699+
<ProjectCRSProj4String type="QString">+proj=longlat +datum=WGS84 +no_defs</ProjectCRSProj4String>
700+
</SpatialRefSys>
701+
<WMSMaxWidth type="int">5000</WMSMaxWidth>
702+
<WMSContactOrganization type="QString"></WMSContactOrganization>
703+
<WMSUseLayerIDs type="bool">false</WMSUseLayerIDs>
704+
<WFSLayers type="QStringList"/>
705+
<DefaultStyles>
706+
<AlphaInt type="int">255</AlphaInt>
707+
<Marker type="QString"></Marker>
708+
<Line type="QString"></Line>
709+
<ColorRamp type="QString"></ColorRamp>
710+
<Fill type="QString"></Fill>
711+
<RandomColors type="bool">true</RandomColors>
712+
</DefaultStyles>
713+
<WFSUrl type="QString"></WFSUrl>
714+
<WMSContactPhone type="QString"></WMSContactPhone>
715+
<WMSFees type="QString">conditions unknown</WMSFees>
716+
<Measurement>
717+
<AreaUnits type="QString">m2</AreaUnits>
718+
<DistanceUnits type="QString">meters</DistanceUnits>
719+
</Measurement>
720+
<WCSUrl type="QString"></WCSUrl>
721+
<Macros>
722+
<pythonCode type="QString"></pythonCode>
723+
</Macros>
724+
<WMSContactPosition type="QString"></WMSContactPosition>
725+
<WMSImageQuality type="int">90</WMSImageQuality>
726+
<WMSAccessConstraints type="QString">None</WMSAccessConstraints>
727+
<WMSKeywordList type="QStringList">
728+
<value></value>
729+
</WMSKeywordList>
730+
<Measure>
731+
<Ellipsoid type="QString">NONE</Ellipsoid>
732+
</Measure>
733+
<WMSAddWktGeometry type="bool">false</WMSAddWktGeometry>
734+
<Legend>
735+
<filterByMap type="bool">false</filterByMap>
736+
</Legend>
737+
<Paths>
738+
<Absolute type="bool">false</Absolute>
739+
</Paths>
740+
<WMSPrecision type="QString">8</WMSPrecision>
741+
<PositionPrecision>
742+
<DecimalPlaces type="int">2</DecimalPlaces>
743+
<Automatic type="bool">true</Automatic>
744+
<DegreeFormat type="QString">MU</DegreeFormat>
745+
</PositionPrecision>
746+
<WMSContactPerson type="QString"></WMSContactPerson>
747+
<WMSSegmentizeFeatureInfoGeometry type="bool">false</WMSSegmentizeFeatureInfoGeometry>
748+
<WMSServiceAbstract type="QString"></WMSServiceAbstract>
749+
<Identify>
750+
<disabledLayers type="QStringList"/>
751+
</Identify>
752+
<WMSOnlineResource type="QString"></WMSOnlineResource>
753+
<Gui>
754+
<SelectionColorBluePart type="int">0</SelectionColorBluePart>
755+
<CanvasColorRedPart type="int">255</CanvasColorRedPart>
756+
<SelectionColorAlphaPart type="int">255</SelectionColorAlphaPart>
757+
<SelectionColorGreenPart type="int">255</SelectionColorGreenPart>
758+
<SelectionColorRedPart type="int">255</SelectionColorRedPart>
759+
<CanvasColorGreenPart type="int">255</CanvasColorGreenPart>
760+
<CanvasColorBluePart type="int">255</CanvasColorBluePart>
761+
</Gui>
762+
<WMSServiceCapabilities type="bool">false</WMSServiceCapabilities>
763+
<WMSUrl type="QString"></WMSUrl>
764+
<WMSRequestDefinedDataSources type="bool">false</WMSRequestDefinedDataSources>
765+
</properties>
766+
<visibility-presets/>
767+
<transformContext/>
768+
<projectMetadata>
769+
<identifier></identifier>
770+
<parentidentifier></parentidentifier>
771+
<language></language>
772+
<type></type>
773+
<title></title>
774+
<abstract></abstract>
775+
<links/>
776+
<author></author>
777+
<creation></creation>
778+
</projectMetadata>
779+
<Annotations/>
780+
<Layouts/>
781+
</qgis>
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
Content-Length: 5775
2+
Content-Type: text/xml; charset=utf-8
3+
4+
<?xml version="1.0" encoding="utf-8"?>
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_without_title.qgs&amp;SERVICE=WMS&amp;REQUEST=GetSchemaExtension" version="1.3" xmlns:sld="http://www.opengis.net/sld">
6+
<Service>
7+
<Name>WMS</Name>
8+
<KeywordList>
9+
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
10+
</KeywordList>
11+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs" xmlns:xlink="http://www.w3.org/1999/xlink"/>
12+
<Fees>conditions unknown</Fees>
13+
<AccessConstraints>None</AccessConstraints>
14+
</Service>
15+
<Capability>
16+
<Request>
17+
<GetCapabilities>
18+
<Format>text/xml</Format>
19+
<DCPType>
20+
<HTTP>
21+
<Get>
22+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
23+
</Get>
24+
</HTTP>
25+
</DCPType>
26+
</GetCapabilities>
27+
<GetMap>
28+
<Format>image/jpeg</Format>
29+
<Format>image/png</Format>
30+
<Format>image/png; mode=16bit</Format>
31+
<Format>image/png; mode=8bit</Format>
32+
<Format>image/png; mode=1bit</Format>
33+
<Format>application/dxf</Format>
34+
<DCPType>
35+
<HTTP>
36+
<Get>
37+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
38+
</Get>
39+
</HTTP>
40+
</DCPType>
41+
</GetMap>
42+
<GetFeatureInfo>
43+
<Format>text/plain</Format>
44+
<Format>text/html</Format>
45+
<Format>text/xml</Format>
46+
<Format>application/vnd.ogc.gml</Format>
47+
<Format>application/vnd.ogc.gml/3.1.1</Format>
48+
<DCPType>
49+
<HTTP>
50+
<Get>
51+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
52+
</Get>
53+
</HTTP>
54+
</DCPType>
55+
</GetFeatureInfo>
56+
<sld:GetLegendGraphic>
57+
<Format>image/jpeg</Format>
58+
<Format>image/png</Format>
59+
<DCPType>
60+
<HTTP>
61+
<Get>
62+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
63+
</Get>
64+
</HTTP>
65+
</DCPType>
66+
</sld:GetLegendGraphic>
67+
<sld:DescribeLayer>
68+
<Format>text/xml</Format>
69+
<DCPType>
70+
<HTTP>
71+
<Get>
72+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
73+
</Get>
74+
</HTTP>
75+
</DCPType>
76+
</sld:DescribeLayer>
77+
<qgs:GetStyles>
78+
<Format>text/xml</Format>
79+
<DCPType>
80+
<HTTP>
81+
<Get>
82+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;" xmlns:xlink="http://www.w3.org/1999/xlink"/>
83+
</Get>
84+
</HTTP>
85+
</DCPType>
86+
</qgs:GetStyles>
87+
</Request>
88+
<Exception>
89+
<Format>XML</Format>
90+
</Exception>
91+
<Layer>
92+
<KeywordList>
93+
<Keyword vocabulary="ISO">infoMapAccessService</Keyword>
94+
</KeywordList>
95+
<CRS>CRS:84</CRS>
96+
<CRS>EPSG:4326</CRS>
97+
<CRS>EPSG:3857</CRS>
98+
<EX_GeographicBoundingBox>
99+
<westBoundLongitude>-5.13262</westBoundLongitude>
100+
<eastBoundLongitude>3.11793</eastBoundLongitude>
101+
<southBoundLatitude>46.2792</southBoundLatitude>
102+
<northBoundLatitude>49.7265</northBoundLatitude>
103+
</EX_GeographicBoundingBox>
104+
<BoundingBox maxy="6.39904e+06" maxx="347086" miny="5.8252e+06" CRS="EPSG:3857" minx="-571361"/>
105+
<BoundingBox maxy="3.11793" maxx="49.7265" miny="-5.13262" CRS="EPSG:4326" minx="46.2792"/>
106+
<Layer queryable="1">
107+
<Name>france_parts</Name>
108+
<Title>france_parts</Title>
109+
<CRS>CRS:84</CRS>
110+
<CRS>EPSG:4326</CRS>
111+
<CRS>EPSG:3857</CRS>
112+
<EX_GeographicBoundingBox>
113+
<westBoundLongitude>-5.13263</westBoundLongitude>
114+
<eastBoundLongitude>3.11793</eastBoundLongitude>
115+
<southBoundLatitude>46.2792</southBoundLatitude>
116+
<northBoundLatitude>49.7265</northBoundLatitude>
117+
</EX_GeographicBoundingBox>
118+
<BoundingBox maxy="6.39904e+06" maxx="347086" miny="5.8252e+06" CRS="EPSG:3857" minx="-571361"/>
119+
<BoundingBox maxy="3.11793" maxx="49.7265" miny="-5.13263" CRS="EPSG:4326" minx="46.2792"/>
120+
<Style>
121+
<Name>default</Name>
122+
<Title>default</Title>
123+
<LegendURL>
124+
<Format>image/png</Format>
125+
<OnlineResource xlink:type="simple" xlink:href="https://www.qgis.org/?MAP=tests/testdata/qgis_server/test_project_without_title.qgs&amp;SERVICE=WMS&amp;VERSION=1.3&amp;REQUEST=GetLegendGraphic&amp;LAYER=france_parts&amp;FORMAT=image/png&amp;STYLE=default" xmlns:xlink="http://www.w3.org/1999/xlink"/>
126+
</LegendURL>
127+
</Style>
128+
</Layer>
129+
</Layer>
130+
</Capability>
131+
</WMS_Capabilities>

3 commit comments

Comments
 (3)

m-kuhn commented on May 3, 2018

@m-kuhn
Member

Looks like this unit test is failing: https://travis-ci.org/qgis/QGIS/jobs/374124060#L1537

pblottiere commented on May 3, 2018

@pblottiere
MemberAuthor

Yes, due to an early backport. The PR #6926 fixes the issue.

m-kuhn commented on May 3, 2018

@m-kuhn
Member

Ah, ok. I was just wondering why my backport was failing repeatedly. I'll wait for this one.

Please sign in to comment.