comparison 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
comparison
equal deleted inserted replaced
975:3da707172772 976:c397fdd8c327
340 log.Printf("storing octree index took %s\n", time.Since(start)) 340 log.Printf("storing octree index took %s\n", time.Since(start))
341 if err != nil { 341 if err != nil {
342 return err 342 return err
343 } 343 }
344 344
345 index := builder.Tree() 345 tree := builder.Tree()
346 builder = nil // not needed from now on 346 builder = nil // not needed from now on
347 347
348 // TODO: Generate iso-lines 348 start = time.Now()
349 349 err = generateContours(tree, tx, id)
350 _ = index 350 log.Printf("generating and storing contour lines took %s\n", time.Since(start))
351 if err != nil {
352 return err
353 }
351 354
352 return tx.Commit() 355 return tx.Commit()
353 } 356 }