diff pkg/controllers/octreecross.go @ 755:1a1a8b5f2d02

Vertical traversal of octree for cross sections. WIP.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 24 Sep 2018 18:41:29 +0200
parents e6f8d58434f4
children 5e14000829d1
line wrap: on
line diff
--- a/pkg/controllers/octreecross.go	Mon Sep 24 17:30:55 2018 +0200
+++ b/pkg/controllers/octreecross.go	Mon Sep 24 18:41:29 2018 +0200
@@ -32,12 +32,11 @@
 
 	dst := make(models.GeoJSONLineCoordinates, len(src))
 	for i, s := range src {
-		d := &dst[i]
 		if err := stmt.QueryRowContext(
 			ctx,
 			s.Lat, s.Lon,
 			fromEPSG, toEPSG,
-		).Scan(&d.Lat, &d.Lon); err != nil {
+		).Scan(&dst[i].Lat, &dst[i].Lon); err != nil {
 			return nil, err
 		}
 	}