diff pkg/wkb/data.go @ 4667:0ddb308fed37

Reintroduced the ST_MakeValid calls when inserting the iso geometries into the database.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 14 Oct 2019 17:23:29 +0200
parents 98497ac4af3c
children 1222b777f51f
line wrap: on
line diff
--- a/pkg/wkb/data.go	Mon Oct 14 16:10:31 2019 +0200
+++ b/pkg/wkb/data.go	Mon Oct 14 17:23:29 2019 +0200
@@ -160,3 +160,9 @@
 	}
 	return sum > 0
 }
+
+func (lr LinearRingGeom) Reverse() {
+	for i, j := 0, len(lr)-1; i < j; i, j = i+1, j-1 {
+		lr[i], lr[j] = lr[j], lr[i]
+	}
+}