Skip to content

Commit c787148

Browse files
authored
- fixed bug introduced in previous commit (#2306)
* - fixed bug introduced in previous commit * - fixed flake8
1 parent 95580f2 commit c787148

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

pygeoapi/provider/wms_facade.py

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

49+
DEFAULT_CRS = 'http://www.opengis.net/def/crs/EPSG/0/4326'
50+
4951

5052
class WMSFacadeProvider(BaseProvider):
5153
"""WMS 1.3.0 provider"""
@@ -64,8 +66,8 @@ def __init__(self, provider_def):
6466
LOGGER.debug(f'pyproj version: {pyproj.__version__}')
6567

6668
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):
69+
height=300, crs=DEFAULT_CRS, datetime_=None, transparent=True,
70+
bbox_crs=DEFAULT_CRS, format_='png', **kwargs):
6971
"""
7072
Generate map
7173
@@ -86,7 +88,7 @@ def query(self, style=None, bbox=[-180, -90, 180, 90], width=500,
8688

8789
version = self.options.get('version', '1.3.0')
8890

89-
if version == '1.3.0' and CRS_CODES.get('bbox_crs') == 'EPSG:4326':
91+
if version == '1.3.0' and CRS_CODES.get(bbox_crs) == 'EPSG:4326':
9092
bbox = [bbox[1], bbox[0], bbox[3], bbox[2]]
9193
bbox2 = ','.join(map(str, bbox))
9294

0 commit comments

Comments
 (0)