@@ -495,6 +495,42 @@ def test_wms_GetLegendGraphic_BBox2(self):
495
495
r , h = self ._result (self ._execute_request (qs ))
496
496
self ._img_diff_error (r , h , "WMS_GetLegendGraphic_BBox2" )
497
497
498
+ def test_wms_GetLegendGraphic_BBox_Fallback (self ):
499
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
500
+ "MAP" : urllib .parse .quote (self .projectPath ),
501
+ "SERVICE" : "WMS" ,
502
+ "VERSION" : "1.1.1" ,
503
+ "REQUEST" : "GetLegendGraphic" ,
504
+ "LAYER" : "Country,Hello,db_point" ,
505
+ "LAYERTITLE" : "FALSE" ,
506
+ "FORMAT" : "image/png" ,
507
+ "HEIGHT" : "500" ,
508
+ "WIDTH" : "500" ,
509
+ "BBOX" : "-151.7,-38.9,51.0,78.0" ,
510
+ "CRS" : "EPSG:4326"
511
+ }.items ())])
512
+
513
+ r , h = self ._result (self ._execute_request (qs ))
514
+ self ._img_diff_error (r , h , "WMS_GetLegendGraphic_BBox" )
515
+
516
+ def test_wms_GetLegendGraphic_BBox2_Fallback (self ):
517
+ qs = "?" + "&" .join (["%s=%s" % i for i in list ({
518
+ "MAP" : urllib .parse .quote (self .projectPath ),
519
+ "SERVICE" : "WMS" ,
520
+ "VERSION" : "1.1.1" ,
521
+ "REQUEST" : "GetLegendGraphic" ,
522
+ "LAYER" : "Country,Hello,db_point" ,
523
+ "LAYERTITLE" : "FALSE" ,
524
+ "FORMAT" : "image/png" ,
525
+ "HEIGHT" : "500" ,
526
+ "WIDTH" : "500" ,
527
+ "BBOX" : "-76.08,-6.4,-19.38,38.04" ,
528
+ "SRS" : "EPSG:4326"
529
+ }.items ())])
530
+
531
+ r , h = self ._result (self ._execute_request (qs ))
532
+ self ._img_diff_error (r , h , "WMS_GetLegendGraphic_BBox2" )
533
+
498
534
def test_wms_GetLegendGraphic_EmptyLegend (self ):
499
535
qs = "?" + "&" .join (["%s=%s" % i for i in list ({
500
536
"MAP" : self .testdata_path + 'test_project_contextual_legend.qgs' ,
0 commit comments