4646 'http://www.opengis.net/def/crs/EPSG/0/3857' : 'EPSG:3857'
4747}
4848
49+ DEFAULT_CRS = 'EPSG:4326'
4950
5051class WMSFacadeProvider (BaseProvider ):
5152 """WMS 1.3.0 provider"""
@@ -64,8 +65,8 @@ def __init__(self, provider_def):
6465 LOGGER .debug (f'pyproj version: { pyproj .__version__ } ' )
6566
6667 def query (self , style = None , bbox = [- 180 , - 90 , 180 , 90 ], width = 500 ,
67- height = 300 , crs = 4326 , datetime_ = None , transparent = True ,
68- bbox_crs = 4326 , format_ = 'png' , ** kwargs ):
68+ height = 300 , crs = DEFAULT_CRS , datetime_ = None , transparent = True ,
69+ bbox_crs = DEFAULT_CRS , format_ = 'png' , ** kwargs ):
6970 """
7071 Generate map
7172
@@ -86,7 +87,7 @@ def query(self, style=None, bbox=[-180, -90, 180, 90], width=500,
8687
8788 version = self .options .get ('version' , '1.3.0' )
8889
89- if version == '1.3.0' and CRS_CODES .get (' bbox_crs' ) == 'EPSG:4326' :
90+ if version == '1.3.0' and CRS_CODES .get (bbox_crs ) == 'EPSG:4326' :
9091 bbox = [bbox [1 ], bbox [0 ], bbox [3 ], bbox [2 ]]
9192 bbox2 = ',' .join (map (str , bbox ))
9293
0 commit comments