changeset 4577:82029885c11b iso-areas

Fixed systematic offset of new iso areas.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 08 Oct 2019 10:37:02 +0200
parents 3290d1b2c580
children c657dec6b0fa
files pkg/octree/areas.go
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/octree/areas.go	Mon Oct 07 17:49:25 2019 +0200
+++ b/pkg/octree/areas.go	Tue Oct 08 10:37:02 2019 +0200
@@ -118,8 +118,8 @@
 	areas := make([]wkb.MultiPolygonGeom, len(heights))
 
 	// TODO: Check if this correct!
-	reprojX := common.Linear(1, min.X, float64(xcells+1), max.X)
-	reprojY := common.Linear(1, min.Y, float64(ycells+1), max.Y)
+	reprojX := common.Linear(0.5, min.X, 1.5, min.X+cellSize)
+	reprojY := common.Linear(0.5, min.Y, 1.5, min.Y+cellSize)
 
 	cnts := make(chan int)