changeset 4999:bfaf7621d0ad wmst-config

Set default value for time dimension on published services By default, only the currently (at request time) valid entries should be shown. Since an according reference value can only be expressed as an interval, set a (arbitrary) short interval of one minute before present.
author Tom Gottfried <tom@intevation.de>
date Mon, 09 Mar 2020 14:40:27 +0100
parents bb2123358bd8
children 2b577e1c5b95
files pkg/geoserver/boot.go
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/geoserver/boot.go	Mon Mar 09 12:19:06 2020 +0100
+++ b/pkg/geoserver/boot.go	Mon Mar 09 14:40:27 2020 +0100
@@ -334,6 +334,10 @@
 				"presentation":        "CONTINUOUS_INTERVAL",
 				"units":               "ISO8601",
 				"nearestMatchEnabled": false,
+				"defaultValue": map[string]interface{}{
+					"strategy":       "FIXED",
+					"referenceValue": "PT1M/PRESENT",
+				},
 			}
 			if endAttr := tables[i].WMSTEndAttribute; endAttr != nil {
 				di["endAttribute"] = *endAttr