Skip to content

Commit

Permalink
Fixing rendering issue when some metadata is None
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Nov 3, 2023
1 parent 28aee73 commit 7a41e67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eoxserver/services/mapserver/wcs/base_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def layer_for_coverage(self, coverage, native_format, version=None):

for band in bands:
ms.setMetaData(layer, {
"band_description": band.description,
"band_definition": band.definition,
"band_uom": band.unit_of_measure,
"band_description": band.description or '',
"band_definition": band.definition or '',
"band_uom": band.unit_of_measure or '',
}, namespace=band.identifier)

if band.allowed_values:
Expand Down

0 comments on commit 7a41e67

Please sign in to comment.