Mercurial > gemma
comparison pkg/imports/sr.go @ 5421:c9da747d4109 marking-single-beam
Extended ISR import job to handle marking scans as well.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 08 Jul 2021 01:46:03 +0200 |
parents | 202715173935 |
children | b8d5f1cd15fb |
comparison
equal
deleted
inserted
replaced
5420:851c14d57680 | 5421:c9da747d4109 |
---|---|
996 // Ignore empty classes | 996 // Ignore empty classes |
997 if len(class) == 0 { | 997 if len(class) == 0 { |
998 continue | 998 continue |
999 } | 999 } |
1000 log.Printf("debug: class %d: %d\n", i, len(class)) | 1000 log.Printf("debug: class %d: %d\n", i, len(class)) |
1001 _, err := stmt.ExecContext(ctx, id, heights[i], epsg, class.AsWKB()) | 1001 if _, err := stmt.ExecContext( |
1002 if err != nil { | 1002 ctx, id, heights[i], epsg, class.AsWKB(), |
1003 ); err != nil { | |
1003 return err | 1004 return err |
1004 } | 1005 } |
1005 } | 1006 } |
1006 | 1007 |
1007 return nil | 1008 return nil |