comparison pkg/octree/areas.go @ 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 6415368c2c60
children fb09a43b062e
comparison
equal deleted inserted replaced
4576:3290d1b2c580 4577:82029885c11b
116 tracer := contourmap.FromFloat64s(xcells+2, ycells+2, raster) 116 tracer := contourmap.FromFloat64s(xcells+2, ycells+2, raster)
117 117
118 areas := make([]wkb.MultiPolygonGeom, len(heights)) 118 areas := make([]wkb.MultiPolygonGeom, len(heights))
119 119
120 // TODO: Check if this correct! 120 // TODO: Check if this correct!
121 reprojX := common.Linear(1, min.X, float64(xcells+1), max.X) 121 reprojX := common.Linear(0.5, min.X, 1.5, min.X+cellSize)
122 reprojY := common.Linear(1, min.Y, float64(ycells+1), max.Y) 122 reprojY := common.Linear(0.5, min.Y, 1.5, min.Y+cellSize)
123 123
124 cnts := make(chan int) 124 cnts := make(chan int)
125 125
126 doContours := func() { 126 doContours := func() {
127 defer wg.Done() 127 defer wg.Done()