# HG changeset patch # User Sascha L. Teichmann # Date 1571340663 -7200 # Node ID 1d48be66ce6971ead603ec9d85449df7adde6f0d # Parent c91e759007da8ae4f56c618a410975bf17374da1 Fixed swapped coordinates ... doh! diff -r c91e759007da -r 1d48be66ce69 pkg/octree/areas.go --- 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() {