Mercurial > gemma
comparison pkg/controllers/cross.go @ 2319:478cc0d26d33
Added current water level to properties of cross-section.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 19 Feb 2019 08:08:17 +0100 |
parents | 84e78d2e2d95 |
children | 5afca5bc1d7a |
comparison
equal
deleted
inserted
replaced
2318:06c4e57435f1 | 2319:478cc0d26d33 |
---|---|
19 "fmt" | 19 "fmt" |
20 "log" | 20 "log" |
21 "net/http" | 21 "net/http" |
22 "time" | 22 "time" |
23 | 23 |
24 "gemma.intevation.de/gemma/pkg/common" | |
24 "gemma.intevation.de/gemma/pkg/models" | 25 "gemma.intevation.de/gemma/pkg/models" |
25 "gemma.intevation.de/gemma/pkg/octree" | 26 "gemma.intevation.de/gemma/pkg/octree" |
26 ) | 27 ) |
27 | 28 |
28 func reproject( | 29 func reproject( |
164 Type: "Feature", | 165 Type: "Feature", |
165 Geometry: models.CrossSectionOutputGeometry{ | 166 Geometry: models.CrossSectionOutputGeometry{ |
166 Type: "MultiLineString", | 167 Type: "MultiLineString", |
167 Coordinates: joined, | 168 Coordinates: joined, |
168 }, | 169 }, |
169 Properties: map[string]interface{}{}, | 170 Properties: map[string]interface{}{ |
171 "waterlevel": map[string]interface{}{ | |
172 // TODO: Fetch values from database. | |
173 "value": float64(50), | |
174 "when": start.Format(common.TimeFormat), | |
175 }, | |
176 }, | |
170 }, | 177 }, |
171 } | 178 } |
172 | 179 |
173 return | 180 return |
174 } | 181 } |