Skip to content

Commit df25afc

Browse files
committed
- renamed get_crs_uri and get_crs_curie for consistency with other function names
1 parent 03caae3 commit df25afc

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎pygeoapi/api/maps.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import logging
4545
from typing import Tuple
4646

47-
from pygeoapi.crs import transform_bbox, DEFAULT_CRS, get_crs_uri
47+
from pygeoapi.crs import transform_bbox, DEFAULT_CRS, get_uri
4848
from pygeoapi.formats import F_JSON, FORMAT_TYPES
4949
from pygeoapi.openapi import get_oas_30_parameters
5050
from pygeoapi.plugin import load_plugin
@@ -114,7 +114,7 @@ def get_collection_map(api: API, request: APIRequest,
114114
query_args['crs'] = collection_def.get('storage_crs',
115115
DEFAULT_CRS)
116116
else:
117-
query_args['crs'] = get_crs_uri(request.params['crs'])
117+
query_args['crs'] = get_uri(request.params['crs'])
118118

119119
except KeyError:
120120
query_args['crs'] = DEFAULT_CRS
@@ -126,7 +126,7 @@ def get_collection_map(api: API, request: APIRequest,
126126
if 'bbox-crs' not in request.params:
127127
query_args['bbox-crs'] = DEFAULT_CRS
128128
else:
129-
query_args['bbox-crs'] = get_crs_uri(request.params['bbox-crs'])
129+
query_args['bbox-crs'] = get_uri(request.params['bbox-crs'])
130130
except KeyError:
131131
query_args['bbox-crs'] = DEFAULT_CRS
132132

‎pygeoapi/crs.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_supported_crs_list(
122122
return supported_crs_list
123123

124124

125-
def get_crs_uri(crs) -> str:
125+
def get_uri(crs) -> str:
126126
"""
127127
Parse a uri from a uri or a curie
128128
@@ -181,7 +181,7 @@ def get_crs_uri(crs) -> str:
181181
return e
182182

183183

184-
def get_crs_curie(crs) -> str:
184+
def get_curie(crs) -> str:
185185
"""
186186
Get a WMS compatible CRS CURIE from a uri
187187

‎pygeoapi/provider/wms_facade.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
from pyproj.exceptions import CRSError
3535

36-
from pygeoapi.crs import get_crs_curie
36+
from pygeoapi.crs import get_curie
3737

3838
import pyproj
3939
import requests
@@ -92,7 +92,7 @@ def query(self, style=None, bbox=[-180, -90, 180, 90],
9292
version = self.options.get('version', '1.3.0')
9393

9494
try:
95-
wms_crs = get_crs_curie(crs)
95+
wms_crs = get_curie(crs)
9696
except CRSError:
9797
wms_crs = DEFAULT_WMS_CRS
9898

0 commit comments

Comments
 (0)