comparison pkg/geoserver/boot.go @ 4995:4a816ecf70de wmst-config

Added support for WMS-Time in configuring the GeoServer.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 06 Mar 2020 11:48:11 +0100
parents 61eb65394a13
children bfaf7621d0ad
comparison
equal deleted inserted replaced
4991:6a48e5c6fe2f 4995:4a816ecf70de
325 "virtualTable": vt, 325 "virtualTable": vt,
326 } 326 }
327 entries = append(entries, entry) 327 entries = append(entries, entry)
328 } 328 }
329 329
330 /* XXX: Experimental 330 if attr := tables[i].WMSTAttribute; attr != nil {
331 if table == "sounding_differences" {
332 di := map[string]interface{}{ 331 di := map[string]interface{}{
333 "enabled": true, 332 "enabled": true,
334 "attribute": "minuend", 333 "attribute": *attr,
335 "endAttribute": "subtrahend",
336 "presentation": "CONTINUOUS_INTERVAL", 334 "presentation": "CONTINUOUS_INTERVAL",
337 "units": "ISO8601", 335 "units": "ISO8601",
338 "nearestMatchEnabled": false, 336 "nearestMatchEnabled": false,
339 } 337 }
338 if endAttr := tables[i].WMSTEndAttribute; endAttr != nil {
339 di["endAttribute"] = *endAttr
340 }
340 entry := map[string]interface{}{ 341 entry := map[string]interface{}{
341 "@key": "time", 342 "@key": "time",
342 "dimensionInfo": di, 343 "dimensionInfo": di,
343 } 344 }
344 entries = append(entries, entry) 345 entries = append(entries, entry)
345 } 346 }
346 */
347 347
348 if len(entries) > 0 { 348 if len(entries) > 0 {
349 ft["metadata"] = map[string]interface{}{ 349 ft["metadata"] = map[string]interface{}{
350 "entry": entries, 350 "entry": entries,
351 } 351 }