Skip to content

Commit ca7b965

Browse files
don't enforce 'trs'
1 parent f48ff8e commit ca7b965

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

models/top_level/providers/records.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Languages(Enum):
1717

1818

1919
class TrsAuthorities(Enum):
20+
NONE = ""
2021
ISO8601 = "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian"
2122

2223

ui_widgets/DataSetterFromUi.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,12 @@ def set_resource_data_from_ui(self):
318318

319319
config_data.resources[res_name].extents.temporal.begin = temporal_begin
320320
config_data.resources[res_name].extents.temporal.end = temporal_end
321+
trs = get_enum_value_from_string(
322+
TrsAuthorities,
323+
get_widget_text_value(dialog.comboBoxResExtentsTemporalTrs),
324+
)
321325
config_data.resources[res_name].extents.temporal.trs = (
322-
get_enum_value_from_string(
323-
TrsAuthorities,
324-
get_widget_text_value(dialog.comboBoxResExtentsTemporalTrs),
325-
)
326+
trs if trs != TrsAuthorities.NONE else None
326327
)
327328

328329
# links

ui_widgets/UiSetter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def customize_ui_on_launch(self):
530530
)
531531
fill_combo_box(
532532
dialog.comboBoxResExtentsTemporalTrs,
533-
TrsAuthorities.ISO8601,
533+
TrsAuthorities.NONE,
534534
)
535535

536536
fill_combo_box(

0 commit comments

Comments
 (0)