diff pkg/imports/st.go @ 1983:f9f1babe52ae

Fix area generation from multipolygon input In case the waterway axis representing a stretch intersects distinct parts of the input area, a multipolygon has to be returned. Before, an arbitrary polygon was selected due to the used function not being set-returning. In passing, consistently name respective columns in schema.
author Tom Gottfried <tom@intevation.de>
date Wed, 23 Jan 2019 16:25:43 +0100
parents 0ff9bd32c34c
children 59055c8301df
line wrap: on
line diff
--- a/pkg/imports/st.go	Wed Jan 23 16:18:36 2019 +0100
+++ b/pkg/imports/st.go	Wed Jan 23 16:25:43 2019 +0100
@@ -97,7 +97,7 @@
 INSERT INTO waterway.stretches (
   name,
   stretch,
-  geom,
+  area,
   objnam,
   nobjnam,
   date_info,