Skip to content

Commit 8842e5f

Browse files
committed
- switched to accept CRS:84 (for compatibility with WMS) and not CRS84
1 parent 707a3f4 commit 8842e5f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/source/publishing/ogcapi-maps.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ required. An optional style name can be defined via `options.style`.
124124
- `http://www.opengis.net/def/crs/EPSG/0/4326`
125125
- `[EPSG:4326]`
126126
- `EPSG:4326` (unsafe)
127-
- `CRS84` (unsafe)
127+
- `CRS:84` (unsafe, for compatibility with WMS)
128128
- `OGC:CRS84` (unsafe)
129129

130130
If `crs` is not provided, the server will default to the `storage_crs`; in case it does not exist, the default is `CRS84`.

‎pygeoapi/crs.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ def get_crs_uri(str) -> str:
168168
curie_el = curie.split(':')
169169
# We support all EPSG and CRS84
170170
if len(curie_el
171-
) > 2 or (curie_el[0] != 'epsg' and curie not in ['crs84', 'ogc:crs84']): # noqa
171+
) > 2 or (curie_el[0] != 'epsg' and curie not in ['crs:84', 'ogc:crs84']): # noqa
172172
raise CRSError('Unsupported crs')
173173

174-
if curie in ['crs84', 'ogc:crs84']:
174+
if curie in ['crs:84', 'ogc:crs84']:
175175
return 'http://www.opengis.net/def/crs/OGC/1.3/CRS84'
176176

177177
return f'http://www.opengis.net/def/crs/EPSG/0/{curie_el[1]}'

0 commit comments

Comments
 (0)