Mercurial > gemma
diff cmd/octree2contour/store.go @ 925:15bf101e1522
Send 2D X/Y vertices to the database directly instead of sending 3D data and dropping the Z value afterwards.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sat, 06 Oct 2018 13:34:51 +0200 |
parents | 52cb0b82b490 |
children |
line wrap: on
line diff
--- a/cmd/octree2contour/store.go Sat Oct 06 13:20:31 2018 +0200 +++ b/cmd/octree2contour/store.go Sat Oct 06 13:34:51 2018 +0200 @@ -31,7 +31,7 @@ ST_Intersection( ST_Transform(sr.area::geometry, $3::integer), ST_SimplifyPreserveTopology( - ST_LineMerge(ST_Force2D(ST_GeomFromWKB($2, $3::integer))), + ST_LineMerge(ST_GeomFromWKB($2, $3::integer)), $6 ) ), @@ -70,7 +70,7 @@ for _, r := range all { if _, err := stmt.Exec( - r.h, r.lines.AsWKB(), epsg, + r.h, r.lines.AsWKB2D(), epsg, bottleneck, date, tol, ); err != nil {