Skip to content

Commit 115e9a8

Browse files
committed
- fixed bug introduced by previous commit
1 parent b2edb57 commit 115e9a8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygeoapi/provider/wms_facade.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
'http://www.opengis.net/def/crs/EPSG/0/3857': 'EPSG:3857'
4747
}
4848

49+
DEFAULT_CRS = 'EPSG:4326'
4950

5051
class 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

Comments
 (0)