Mercurial > gemma
diff pkg/imports/isr.go @ 5412:34bc6041e61e marking-single-beam
Added a type for class breaks.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 07 Jul 2021 10:58:14 +0200 |
parents | 56c589f7435d |
children | c9da747d4109 |
line wrap: on
line diff
--- a/pkg/imports/isr.go Wed Jul 07 09:43:41 2021 +0200 +++ b/pkg/imports/isr.go Wed Jul 07 10:58:14 2021 +0200 @@ -157,7 +157,7 @@ func (isr *IsoRefresh) processBottleneck( ctx context.Context, conn *sql.Conn, - heights []float64, + heights mesh.ClassBreaks, bn *bottleneckSoundingResults, ) error { // Do one transaction per bottleneck. @@ -179,7 +179,7 @@ if err != nil { return err } - hs := mesh.ExtrapolateClassBreaks(heights, tree.Min().Z, tree.Max().Z) + hs := heights.ExtrapolateClassBreaks(tree.Min().Z, tree.Max().Z) hs = common.DedupFloat64s(hs) // Delete the old iso areas.