diff pkg/imports/sr.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 6eab3ac0e849
children 1d6f28e45696
line wrap: on
line diff
--- a/pkg/imports/sr.go	Mon Oct 14 16:10:31 2019 +0200
+++ b/pkg/imports/sr.go	Mon Oct 14 17:23:29 2019 +0200
@@ -176,7 +176,8 @@
     ST_Multi(
       ST_CollectionExtract(
         ST_SimplifyPreserveTopology(
-          ST_GeomFromWKB($4, $3::integer),
+          ST_Multi(ST_Collectionextract(
+            ST_MakeValid(ST_GeomFromWKB($4, $3::integer)), 3)),
           $5
         ),
         3