Skip to content

Commit c90f757

Browse files
committedMar 1, 2023
Update of PyQgsServerWMSGetLegendGraphic on all image requests using labels and having not yet a fix font with "LAYERFONTBOLD": "TRUE", "LAYERFONTSIZE": "12", "LAYERFONTFAMILY": self.fontFamily, "ITEMFONTBOLD": "TRUE", "ITEMFONTSIZE": "12", "ITEMFONTFAMILY": self.fontFamily
1 parent cc3c2ec commit c90f757

File tree

1 file changed

+183
-27
lines changed

1 file changed

+183
-27
lines changed
 

‎tests/src/python/test_qgsserver_wms_getlegendgraphic.py‎

Lines changed: 183 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def test_wms_GetLegendGraphic_LayerSpace(self):
8686
"LAYERSPACE": "50.0",
8787
"LAYERFONTBOLD": "TRUE",
8888
"LAYERFONTSIZE": "30",
89+
"LAYERFONTFAMILY": self.fontFamily,
8990
"ITEMFONTBOLD": "TRUE",
9091
"ITEMFONTSIZE": "20",
91-
"LAYERFONTFAMILY": self.fontFamily,
9292
"ITEMFONTFAMILY": self.fontFamily,
9393
"LAYERTITLE": "TRUE",
9494
"CRS": "EPSG:3857"
@@ -132,9 +132,9 @@ def test_wms_GetLegendGraphic_LayerTitleSpace(self):
132132
"LAYERTITLESPACE": "20.0",
133133
"LAYERFONTBOLD": "TRUE",
134134
"LAYERFONTSIZE": "30",
135+
"LAYERFONTFAMILY": self.fontFamily,
135136
"ITEMFONTBOLD": "TRUE",
136137
"ITEMFONTSIZE": "20",
137-
"LAYERFONTFAMILY": self.fontFamily,
138138
"ITEMFONTFAMILY": self.fontFamily,
139139
"LAYERTITLE": "TRUE",
140140
"CRS": "EPSG:3857"
@@ -157,9 +157,9 @@ def test_wms_GetLegendGraphic_ShowFeatureCount(self):
157157
"LAYERFONTBOLD": "TRUE",
158158
"LAYERFONTSIZE": "30",
159159
"LAYERFONTFAMILY": self.fontFamily,
160-
"ITEMFONTFAMILY": self.fontFamily,
161160
"ITEMFONTBOLD": "TRUE",
162161
"ITEMFONTSIZE": "20",
162+
"ITEMFONTFAMILY": self.fontFamily,
163163
"SHOWFEATURECOUNT": "TRUE",
164164
"CRS": "EPSG:3857"
165165
}.items())])
@@ -183,10 +183,10 @@ def test_wms_getLegendGraphics_layertitle(self):
183183
'LAYER': 'testlayer%20èé',
184184
'LAYERFONTBOLD': 'TRUE',
185185
'LAYERFONTSIZE': '30',
186-
'ITEMFONTBOLD': 'TRUE',
187186
'LAYERFONTFAMILY': self.fontFamily,
188-
'ITEMFONTFAMILY': self.fontFamily,
187+
'ITEMFONTBOLD': 'TRUE',
189188
'ITEMFONTSIZE': '20',
189+
'ITEMFONTFAMILY': self.fontFamily,
190190
'LAYERTITLE': 'TRUE',
191191
'RULELABEL': 'TRUE'
192192
}
@@ -206,10 +206,10 @@ def test_wms_getLegendGraphics_layertitle(self):
206206
'LAYER': 'testlayer%20èé',
207207
'LAYERFONTBOLD': 'TRUE',
208208
'LAYERFONTSIZE': '30',
209-
'ITEMFONTBOLD': 'TRUE',
210209
'LAYERFONTFAMILY': self.fontFamily,
211-
'ITEMFONTFAMILY': self.fontFamily,
212-
'ITEMFONTSIZE': '20'
210+
'ITEMFONTBOLD': 'TRUE',
211+
'ITEMFONTSIZE': '20',
212+
'ITEMFONTFAMILY': self.fontFamily
213213
}
214214
qs = '?' + '&'.join(["%s=%s" % (k, v) for k, v in parms.items()])
215215
r, h = self._result(self._execute_request(qs))
@@ -243,9 +243,9 @@ def test_wms_getLegendGraphics_rulelabel(self):
243243
'LAYER': 'testlayer%20èé',
244244
'LAYERFONTBOLD': 'TRUE',
245245
'LAYERFONTSIZE': '30',
246+
'LAYERFONTFAMILY': self.fontFamily,
246247
'ITEMFONTBOLD': 'TRUE',
247248
'ITEMFONTSIZE': '20',
248-
'LAYERFONTFAMILY': self.fontFamily,
249249
'ITEMFONTFAMILY': self.fontFamily,
250250
'RULELABEL': 'FALSE'
251251
}
@@ -262,9 +262,9 @@ def test_wms_getLegendGraphics_rulelabel(self):
262262
'LAYER': 'testlayer%20èé',
263263
'LAYERFONTBOLD': 'TRUE',
264264
'LAYERFONTSIZE': '30',
265+
'LAYERFONTFAMILY': self.fontFamily,
265266
'ITEMFONTBOLD': 'TRUE',
266267
'ITEMFONTSIZE': '20',
267-
'LAYERFONTFAMILY': self.fontFamily,
268268
'ITEMFONTFAMILY': self.fontFamily,
269269
'LAYERTITLE': 'FALSE',
270270
'RULELABEL': 'TRUE'
@@ -283,9 +283,9 @@ def test_wms_getLegendGraphics_rulelabel(self):
283283
'LAYER': 'testlayer%20èé',
284284
'LAYERFONTBOLD': 'TRUE',
285285
'LAYERFONTSIZE': '30',
286+
'LAYERFONTFAMILY': self.fontFamily,
286287
'ITEMFONTBOLD': 'TRUE',
287288
'ITEMFONTSIZE': '20',
288-
'LAYERFONTFAMILY': self.fontFamily,
289289
'ITEMFONTFAMILY': self.fontFamily,
290290
'LAYERTITLE': 'FALSE'
291291
}
@@ -686,7 +686,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Min(self):
686686
"SRCHEIGHT": "550",
687687
"SRCWIDTH": "850",
688688
"BBOX": "-608.4,-1002.6,698.2,1019.0",
689-
"CRS": "EPSG:4326"
689+
"CRS": "EPSG:4326",
690+
"LAYERFONTBOLD": "TRUE",
691+
"LAYERFONTSIZE": "12",
692+
"LAYERFONTFAMILY": self.fontFamily,
693+
"ITEMFONTBOLD": "TRUE",
694+
"ITEMFONTSIZE": "12",
695+
"ITEMFONTFAMILY": self.fontFamily
690696
}.items())])
691697

692698
r, h = self._result(self._execute_request(qs))
@@ -702,7 +708,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Min(self):
702708
"SRCHEIGHT": "550",
703709
"SRCWIDTH": "850",
704710
"BBOX": "-1261.7,-2013.5,1351.5,2029.9",
705-
"CRS": "EPSG:4326"
711+
"CRS": "EPSG:4326",
712+
"LAYERFONTBOLD": "TRUE",
713+
"LAYERFONTSIZE": "12",
714+
"LAYERFONTFAMILY": self.fontFamily,
715+
"ITEMFONTBOLD": "TRUE",
716+
"ITEMFONTSIZE": "12",
717+
"ITEMFONTFAMILY": self.fontFamily
706718
}.items())])
707719

708720
r, h = self._result(self._execute_request(qs))
@@ -719,7 +731,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Scaled_01(self):
719731
"SRCHEIGHT": "550",
720732
"SRCWIDTH": "850",
721733
"BBOX": "31.8,-12.0,58.0,28.4",
722-
"CRS": "EPSG:4326"
734+
"CRS": "EPSG:4326",
735+
"LAYERFONTBOLD": "TRUE",
736+
"LAYERFONTSIZE": "12",
737+
"LAYERFONTFAMILY": self.fontFamily,
738+
"ITEMFONTBOLD": "TRUE",
739+
"ITEMFONTSIZE": "12",
740+
"ITEMFONTFAMILY": self.fontFamily
723741
}.items())])
724742

725743
r, h = self._result(self._execute_request(qs))
@@ -736,7 +754,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Scaled_02(self):
736754
"SRCHEIGHT": "550",
737755
"SRCWIDTH": "850",
738756
"BBOX": "25.3,-22.1,64.5,38.5",
739-
"CRS": "EPSG:4326"
757+
"CRS": "EPSG:4326",
758+
"LAYERFONTBOLD": "TRUE",
759+
"LAYERFONTSIZE": "12",
760+
"LAYERFONTFAMILY": self.fontFamily,
761+
"ITEMFONTBOLD": "TRUE",
762+
"ITEMFONTSIZE": "12",
763+
"ITEMFONTFAMILY": self.fontFamily
740764
}.items())])
741765

742766
r, h = self._result(self._execute_request(qs))
@@ -753,7 +777,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Max(self):
753777
"SRCHEIGHT": "550",
754778
"SRCWIDTH": "850",
755779
"BBOX": "44.8,8.0,45.0,8.4",
756-
"CRS": "EPSG:4326"
780+
"CRS": "EPSG:4326",
781+
"LAYERFONTBOLD": "TRUE",
782+
"LAYERFONTSIZE": "12",
783+
"LAYERFONTFAMILY": self.fontFamily,
784+
"ITEMFONTBOLD": "TRUE",
785+
"ITEMFONTSIZE": "12",
786+
"ITEMFONTFAMILY": self.fontFamily
757787
}.items())])
758788

759789
r, h = self._result(self._execute_request(qs))
@@ -769,7 +799,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Max(self):
769799
"SRCHEIGHT": "550",
770800
"SRCWIDTH": "850",
771801
"BBOX": "43.6,6.2,46.2,10.2",
772-
"CRS": "EPSG:4326"
802+
"CRS": "EPSG:4326",
803+
"LAYERFONTBOLD": "TRUE",
804+
"LAYERFONTSIZE": "12",
805+
"LAYERFONTFAMILY": self.fontFamily,
806+
"ITEMFONTBOLD": "TRUE",
807+
"ITEMFONTSIZE": "12",
808+
"ITEMFONTFAMILY": self.fontFamily
773809
}.items())])
774810

775811
r, h = self._result(self._execute_request(qs))
@@ -783,7 +819,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter(self):
783819
"REQUEST": "GetLegendGraphic",
784820
"LAYER": "testlayer",
785821
"FORMAT": "image/png",
786-
"CRS": "EPSG:4326"
822+
"CRS": "EPSG:4326",
823+
"LAYERFONTBOLD": "TRUE",
824+
"LAYERFONTSIZE": "12",
825+
"LAYERFONTFAMILY": self.fontFamily,
826+
"ITEMFONTBOLD": "TRUE",
827+
"ITEMFONTSIZE": "12",
828+
"ITEMFONTFAMILY": self.fontFamily
787829
}.items())])
788830

789831
r, h = self._result(self._execute_request(qs))
@@ -801,7 +843,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_Scaled_2056(self):
801843
"SRCHEIGHT": "600",
802844
"SRCWIDTH": "1500",
803845
"BBOX": "2662610.7,1268841.8,2663010.5,1269000.05",
804-
"CRS": "EPSG:2056"
846+
"CRS": "EPSG:2056",
847+
"LAYERFONTBOLD": "TRUE",
848+
"LAYERFONTSIZE": "12",
849+
"LAYERFONTFAMILY": self.fontFamily,
850+
"ITEMFONTBOLD": "TRUE",
851+
"ITEMFONTSIZE": "12",
852+
"ITEMFONTFAMILY": self.fontFamily
805853
}.items())])
806854

807855
r, h = self._result(self._execute_request(qs))
@@ -815,7 +863,13 @@ def test_wms_GetLegendGraphic_ScaleSymbol_DefaultScale_2056(self):
815863
"REQUEST": "GetLegendGraphic",
816864
"LAYER": "testlayer_2056",
817865
"FORMAT": "image/png",
818-
"CRS": "EPSG:2056"
866+
"CRS": "EPSG:2056",
867+
"LAYERFONTBOLD": "TRUE",
868+
"LAYERFONTSIZE": "12",
869+
"LAYERFONTFAMILY": self.fontFamily,
870+
"ITEMFONTBOLD": "TRUE",
871+
"ITEMFONTSIZE": "12",
872+
"ITEMFONTFAMILY": self.fontFamily
819873
}.items())])
820874

821875
r, h = self._result(self._execute_request(qs))
@@ -832,7 +886,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_Scaled(self):
832886
"SRCHEIGHT": "2550",
833887
"SRCWIDTH": "3850",
834888
"BBOX": "44.89945254864102964,8.20044117721021948,44.90400902275693085,8.20936038559772285",
835-
"CRS": "EPSG:4326"
889+
"CRS": "EPSG:4326",
890+
"LAYERFONTBOLD": "TRUE",
891+
"LAYERFONTSIZE": "12",
892+
"LAYERFONTFAMILY": self.fontFamily,
893+
"ITEMFONTBOLD": "TRUE",
894+
"ITEMFONTSIZE": "12",
895+
"ITEMFONTFAMILY": self.fontFamily
836896
}.items())])
837897

838898
r, h = self._result(self._execute_request(qs))
@@ -846,7 +906,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale(self):
846906
"REQUEST": "GetLegendGraphic",
847907
"LAYER": "testlayer",
848908
"FORMAT": "image/png",
849-
"CRS": "EPSG:4326"
909+
"CRS": "EPSG:4326",
910+
"LAYERFONTBOLD": "TRUE",
911+
"LAYERFONTSIZE": "12",
912+
"LAYERFONTFAMILY": self.fontFamily,
913+
"ITEMFONTBOLD": "TRUE",
914+
"ITEMFONTSIZE": "12",
915+
"ITEMFONTFAMILY": self.fontFamily
850916
}.items())])
851917

852918
r, h = self._result(self._execute_request(qs))
@@ -863,7 +929,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_Rule(self):
863929
"CRS": "EPSG:4326",
864930
"WIDTH": "50",
865931
"HEIGHT": "50",
866-
"RULE": "two"
932+
"RULE": "two",
933+
"LAYERFONTBOLD": "TRUE",
934+
"LAYERFONTSIZE": "12",
935+
"LAYERFONTFAMILY": self.fontFamily,
936+
"ITEMFONTBOLD": "TRUE",
937+
"ITEMFONTSIZE": "12",
938+
"ITEMFONTFAMILY": self.fontFamily
867939
}.items())])
868940

869941
r, h = self._result(self._execute_request(qs))
@@ -880,7 +952,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056(self):
880952
"SRCHEIGHT": "1100",
881953
"SRCWIDTH": "1700",
882954
"BBOX": "2662610.7,1268841.8,2663010.5,1269000.05",
883-
"CRS": "EPSG:2056"
955+
"CRS": "EPSG:2056",
956+
"LAYERFONTBOLD": "TRUE",
957+
"LAYERFONTSIZE": "12",
958+
"LAYERFONTFAMILY": self.fontFamily,
959+
"ITEMFONTBOLD": "TRUE",
960+
"ITEMFONTSIZE": "12",
961+
"ITEMFONTFAMILY": self.fontFamily
884962
}.items())])
885963

886964
r, h = self._result(self._execute_request(qs))
@@ -894,7 +972,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056(self):
894972
"REQUEST": "GetLegendGraphic",
895973
"LAYER": "testlayer_2056",
896974
"FORMAT": "image/png",
897-
"CRS": "EPSG:2056"
975+
"CRS": "EPSG:2056",
976+
"LAYERFONTBOLD": "TRUE",
977+
"LAYERFONTSIZE": "12",
978+
"LAYERFONTFAMILY": self.fontFamily,
979+
"ITEMFONTBOLD": "TRUE",
980+
"ITEMFONTSIZE": "12",
981+
"ITEMFONTFAMILY": self.fontFamily
898982
}.items())])
899983

900984
r, h = self._result(self._execute_request(qs))
@@ -911,7 +995,13 @@ def test_wms_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056(self):
911995
"CRS": "EPSG:2056",
912996
"WIDTH": "50",
913997
"HEIGHT": "50",
914-
"RULE": "test"
998+
"RULE": "test",
999+
"LAYERFONTBOLD": "TRUE",
1000+
"LAYERFONTSIZE": "12",
1001+
"LAYERFONTFAMILY": self.fontFamily,
1002+
"ITEMFONTBOLD": "TRUE",
1003+
"ITEMFONTSIZE": "12",
1004+
"ITEMFONTFAMILY": self.fontFamily
9151005
}.items())])
9161006

9171007
r, h = self._result(self._execute_request(qs))
@@ -928,6 +1018,12 @@ def test_wms_GetLegendGraphic_LAYERFONTCOLOR(self):
9281018
"HEIGHT": "500",
9291019
"WIDTH": "500",
9301020
"CRS": "EPSG:3857",
1021+
"LAYERFONTBOLD": "TRUE",
1022+
"LAYERFONTSIZE": "12",
1023+
"LAYERFONTFAMILY": self.fontFamily,
1024+
"ITEMFONTBOLD": "TRUE",
1025+
"ITEMFONTSIZE": "12",
1026+
"ITEMFONTFAMILY": self.fontFamily,
9311027
"LAYERFONTCOLOR": "red"
9321028
}.items())])
9331029

@@ -945,7 +1041,13 @@ def test_wms_GetLegendGraphic_ITEMFONTCOLOR(self):
9451041
"HEIGHT": "500",
9461042
"WIDTH": "500",
9471043
"CRS": "EPSG:3857",
948-
"ITEMFONTCOLOR": "red",
1044+
"LAYERFONTBOLD": "TRUE",
1045+
"LAYERFONTSIZE": "12",
1046+
"LAYERFONTFAMILY": self.fontFamily,
1047+
"ITEMFONTBOLD": "TRUE",
1048+
"ITEMFONTSIZE": "12",
1049+
"ITEMFONTFAMILY": self.fontFamily,
1050+
"ITEMFONTCOLOR": "red"
9491051
}.items())])
9501052

9511053
r, h = self._result(self._execute_request(qs))
@@ -962,6 +1064,12 @@ def test_wms_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR(self):
9621064
"HEIGHT": "500",
9631065
"WIDTH": "500",
9641066
"CRS": "EPSG:3857",
1067+
"LAYERFONTBOLD": "TRUE",
1068+
"LAYERFONTSIZE": "12",
1069+
"LAYERFONTFAMILY": self.fontFamily,
1070+
"ITEMFONTBOLD": "TRUE",
1071+
"ITEMFONTSIZE": "12",
1072+
"ITEMFONTFAMILY": self.fontFamily
9651073
"ITEMFONTCOLOR": "red",
9661074
"LAYERFONTCOLOR": "blue"
9671075
}.items())])
@@ -980,6 +1088,12 @@ def test_wms_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR_hex(self):
9801088
"HEIGHT": "500",
9811089
"WIDTH": "500",
9821090
"CRS": "EPSG:3857",
1091+
"LAYERFONTBOLD": "TRUE",
1092+
"LAYERFONTSIZE": "12",
1093+
"LAYERFONTFAMILY": self.fontFamily,
1094+
"ITEMFONTBOLD": "TRUE",
1095+
"ITEMFONTSIZE": "12",
1096+
"ITEMFONTFAMILY": self.fontFamily,
9831097
"ITEMFONTCOLOR": r"%23FF0000",
9841098
"LAYERFONTCOLOR": r"%230000FF"
9851099
}.items())])
@@ -1000,6 +1114,12 @@ def test_BBoxNoWidthNoHeight(self):
10001114
"CRS": "EPSG:4326",
10011115
"BBOX": "52.44462990911360123,10.6723591605239374,52.44631832182876963,10.6795952150175264",
10021116
"SLD_VERSION": "1.1",
1117+
"LAYERFONTBOLD": "TRUE",
1118+
"LAYERFONTSIZE": "12",
1119+
"LAYERFONTFAMILY": self.fontFamily,
1120+
"ITEMFONTBOLD": "TRUE",
1121+
"ITEMFONTSIZE": "12",
1122+
"ITEMFONTFAMILY": self.fontFamily
10031123
}.items())])
10041124

10051125
r, h = self._result(self._execute_request(qs))
@@ -1024,6 +1144,12 @@ def testGetLegendGraphicRegression32020(self):
10241144
"CRS": "EPSG:4326",
10251145
"BBOX": "0.05148830809982496426,-2.237691019614711507,0.8090701330998248952,-0.2050896957968479928",
10261146
"SLD_VERSION": "1.1",
1147+
"LAYERFONTBOLD": "TRUE",
1148+
"LAYERFONTSIZE": "12",
1149+
"LAYERFONTFAMILY": self.fontFamily,
1150+
"ITEMFONTBOLD": "TRUE",
1151+
"ITEMFONTSIZE": "12",
1152+
"ITEMFONTFAMILY": self.fontFamily
10271153
}.items())])
10281154

10291155
r, h = self._result(self._execute_request(qs))
@@ -1041,6 +1167,12 @@ def testGetLegendGraphicRegression32020(self):
10411167
"CRS": "EPSG:4326",
10421168
"BBOX": "0.02893333257443075901,-0.2568334631786342026,1.544096982574430621,3.808369184457092604",
10431169
"SLD_VERSION": "1.1",
1170+
"LAYERFONTBOLD": "TRUE",
1171+
"LAYERFONTSIZE": "12",
1172+
"LAYERFONTFAMILY": self.fontFamily,
1173+
"ITEMFONTBOLD": "TRUE",
1174+
"ITEMFONTSIZE": "12",
1175+
"ITEMFONTFAMILY": self.fontFamily
10441176
}.items())])
10451177

10461178
r, h = self._result(self._execute_request(qs))
@@ -1058,6 +1190,12 @@ def testGetLegendGraphicRegression32020(self):
10581190
"CRS": "EPSG:4326",
10591191
"BBOX": "-0.6636370923817864753,-0.2886757815674259042,0.8515265576182133866,3.776526866068300681",
10601192
"SLD_VERSION": "1.1",
1193+
"LAYERFONTBOLD": "TRUE",
1194+
"LAYERFONTSIZE": "12",
1195+
"LAYERFONTFAMILY": self.fontFamily,
1196+
"ITEMFONTBOLD": "TRUE",
1197+
"ITEMFONTSIZE": "12",
1198+
"ITEMFONTFAMILY": self.fontFamily
10611199
}.items())])
10621200

10631201
r, h = self._result(self._execute_request(qs))
@@ -1075,6 +1213,12 @@ def testGetLegendGraphicRegression32020(self):
10751213
"CRS": "EPSG:4326",
10761214
"BBOX": "-0.5787242433450088264,-4.316729057749563836,0.9364394066549910356,-0.2515264101138368069",
10771215
"SLD_VERSION": "1.1",
1216+
"LAYERFONTBOLD": "TRUE",
1217+
"LAYERFONTSIZE": "12",
1218+
"LAYERFONTFAMILY": self.fontFamily,
1219+
"ITEMFONTBOLD": "TRUE",
1220+
"ITEMFONTSIZE": "12",
1221+
"ITEMFONTFAMILY": self.fontFamily
10781222
}.items())])
10791223

10801224
r, h = self._result(self._execute_request(qs))
@@ -1093,6 +1237,12 @@ def testGetLegendGraphicRegression32020(self):
10931237
"CRS": "EPSG:3857",
10941238
"BBOX": "-28147.15420315234223,3960.286488616475253,424402.4530122592696,172632.4964886165108",
10951239
"SLD_VERSION": "1.1",
1240+
"LAYERFONTBOLD": "TRUE",
1241+
"LAYERFONTSIZE": "12",
1242+
"LAYERFONTFAMILY": self.fontFamily,
1243+
"ITEMFONTBOLD": "TRUE",
1244+
"ITEMFONTSIZE": "12",
1245+
"ITEMFONTFAMILY": self.fontFamily
10961246
}.items())])
10971247

10981248
r, h = self._result(self._execute_request(qs))
@@ -1156,6 +1306,12 @@ def testLegendPlaceholderIcon(self):
11561306
"REQUEST": "GetLegendGraphic",
11571307
"LAYER": "landsat",
11581308
"FORMAT": "image/png",
1309+
"LAYERFONTBOLD": "TRUE",
1310+
"LAYERFONTSIZE": "12",
1311+
"LAYERFONTFAMILY": self.fontFamily,
1312+
"ITEMFONTBOLD": "TRUE",
1313+
"ITEMFONTSIZE": "12",
1314+
"ITEMFONTFAMILY": self.fontFamily
11591315
}.items())])
11601316

11611317
r, h = self._result(self._execute_request(qs))

0 commit comments

Comments
 (0)
Please sign in to comment.