diff pkg/imports/sr.go @ 984:3c9ea8ab856a

Fixed small glitches in sounding result importer.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 19 Oct 2018 16:05:46 +0200
parents f4f5bd73bd27
children 7dfd3db94e6d
line wrap: on
line diff
--- a/pkg/imports/sr.go	Fri Oct 19 15:45:55 2018 +0200
+++ b/pkg/imports/sr.go	Fri Oct 19 16:05:46 2018 +0200
@@ -68,7 +68,7 @@
   $2::date,
   $3,
   ST_Transform(ST_GeomFromWKB($4, $6::integer), 4326)::geography,
-  (SELECT CASE $5 IS NULL THEN
+  (SELECT CASE WHEN $5::bytea IS NULL THEN
     ST_Transform(
       ST_ConcaveHull(
           ST_Force2D(ST_GeomFromWKB($4, $6::integer)), 0.7), 4326)::geography