Mercurial > gemma
changeset 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 | c34a2a643f5e |
files | pkg/controllers/imports.go pkg/imports/sr.go |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/controllers/imports.go Fri Oct 19 15:45:55 2018 +0200 +++ b/pkg/controllers/imports.go Fri Oct 19 16:05:46 2018 +0200 @@ -52,7 +52,7 @@ return "", err } - return "", nil + return dir, nil } func importSoundingResult(rw http.ResponseWriter, req *http.Request) {
--- 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