comparison pkg/controllers/cross.go @ 3511:c50d955372b9 waterlevel-in-crossprofile

removed waterlevel property from cross profile endpoint
author Markus Kottlaender <markus@intevation.de>
date Tue, 28 May 2019 17:14:52 +0200
parents 5afca5bc1d7a
children 1458c9b0fdaa
comparison
equal deleted inserted replaced
3509:0e91d40af23e 3511:c50d955372b9
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"
25 "gemma.intevation.de/gemma/pkg/models" 24 "gemma.intevation.de/gemma/pkg/models"
26 "gemma.intevation.de/gemma/pkg/octree" 25 "gemma.intevation.de/gemma/pkg/octree"
27 ) 26 )
28 27
29 func reproject( 28 func reproject(
165 Type: "Feature", 164 Type: "Feature",
166 Geometry: models.CrossSectionOutputGeometry{ 165 Geometry: models.CrossSectionOutputGeometry{
167 Type: "MultiLineString", 166 Type: "MultiLineString",
168 Coordinates: joined, 167 Coordinates: joined,
169 }, 168 },
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 },
177 }, 169 },
178 } 170 }
179 171
180 return 172 return
181 } 173 }