From 3ce68acdb85ec655e088b96f92b436f021beb57b Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Wed, 28 Feb 2024 11:04:18 -0500 Subject: [PATCH] keep 4326 bbox and crs for coverages (#1564) --- pygeoapi/api.py | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/pygeoapi/api.py b/pygeoapi/api.py index f521e78..d57f7fd 100644 --- a/pygeoapi/api.py +++ b/pygeoapi/api.py @@ -1229,23 +1229,13 @@ class API: except ProviderTypeError: pass else: - collection['crs'] = [p.crs] - collection['extent']['spatial'] = { - 'bbox': [[ - p._coverage_properties['bbox'][0], - p._coverage_properties['bbox'][1], - p._coverage_properties['bbox'][2], - p._coverage_properties['bbox'][3] - ]], - 'crs': p.crs, - 'grid': [{ - 'cellsCount': p._coverage_properties['width'], - 'resolution': p._coverage_properties['resx'] + collection['extent']['spatial']['grid'] = [{ + 'cellsCount': p._coverage_properties['width'], + 'resolution': p._coverage_properties['resx'] }, { - 'cellsCount': p._coverage_properties['height'], - 'resolution': p._coverage_properties['resy'] - }] - } + 'cellsCount': p._coverage_properties['height'], + 'resolution': p._coverage_properties['resy'] + }] try: tile = get_provider_by_type(v['providers'], 'tile')