diff pkg/imports/sr.go @ 976:c397fdd8c327

Generate the contour lines of the sounding result during the import, too.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 18 Oct 2018 17:05:54 +0200
parents 7a89313f0ead
children 4a2ca0e20006
line wrap: on
line diff
--- a/pkg/imports/sr.go	Thu Oct 18 16:47:17 2018 +0200
+++ b/pkg/imports/sr.go	Thu Oct 18 17:05:54 2018 +0200
@@ -342,12 +342,15 @@
 		return err
 	}
 
-	index := builder.Tree()
+	tree := builder.Tree()
 	builder = nil // not needed from now on
 
-	// TODO: Generate iso-lines
-
-	_ = index
+	start = time.Now()
+	err = generateContours(tree, tx, id)
+	log.Printf("generating and storing contour lines took %s\n", time.Since(start))
+	if err != nil {
+		return err
+	}
 
 	return tx.Commit()
 }