keep 4326 bbox and crs for coverages (#1564)

This commit is contained in:
Tom Kralidis
2024-02-28 11:04:18 -05:00
committed by GitHub
parent 78c6e953bc
commit 3ce68acdb8
+6 -16
View File
@@ -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')