changeset 4727:1d48be66ce69 stack-polygons

Fixed swapped coordinates ... doh!
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 17 Oct 2019 21:31:03 +0200
parents c91e759007da
children bfbdcf67ae55
files pkg/octree/areas.go
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/octree/areas.go	Thu Oct 17 18:33:46 2019 +0200
+++ b/pkg/octree/areas.go	Thu Oct 17 21:31:03 2019 +0200
@@ -388,7 +388,7 @@
 		// Handle shell
 		shell := make(wkb.LinearRingGeom, len(sh))
 		for j, pt := range sh {
-			y, x := reproj(pt.X, pt.Y)
+			x, y := reproj(pt.X, pt.Y)
 			shell[j] = wkb.PointGeom{X: x, Y: y}
 		}
 		if !shell.CCW() {
@@ -400,7 +400,7 @@
 		for i, hl := range hls {
 			hole := make(wkb.LinearRingGeom, len(hl))
 			for j, pt := range hl {
-				y, x := reproj(pt.X, pt.Y)
+				x, y := reproj(pt.X, pt.Y)
 				hole[j] = wkb.PointGeom{X: x, Y: y}
 			}
 			if hole.CCW() {