Skip to content

Commit

Permalink
Fixing error in WCS wen some metadata is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinius committed Nov 3, 2023
1 parent 7a41e67 commit 3a78eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eoxserver/services/ows/wcs/v20/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ def encode_nil_values(self, nil_values):
def encode_field(self, field):
return SWE("field",
SWE("Quantity",
SWE("description", field.description),
SWE("description", field.description or ''),
self.encode_nil_values(field.nil_values),
SWE("uom", code=field.unit_of_measure),
SWE("uom", code=field.unit_of_measure or ''),
SWE("constraint",
SWE("AllowedValues",
*[
Expand All @@ -435,7 +435,7 @@ def encode_field(self, field):
),
# TODO: lookup correct definition according to data type:
# http://www.opengis.net/def/dataType/OGC/0/
definition=field.definition
definition=field.definition or ''
),
name=field.identifier
)
Expand Down

0 comments on commit 3a78eb5

Please sign in to comment.