comparison pkg/mesh/raster.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 f4abfd0ee8ad
children 1a89084163d5
comparison
equal deleted inserted replaced
5411:9822a840d668 5412:34bc6041e61e
193 } 193 }
194 } 194 }
195 return min, max, min != math.MaxFloat64 195 return min, max, min != math.MaxFloat64
196 } 196 }
197 197
198 func (r *Raster) Trace(heights []float64) []wkb.MultiPolygonGeom { 198 func (r *Raster) Trace(heights ClassBreaks) []wkb.MultiPolygonGeom {
199 start := time.Now() 199 start := time.Now()
200 200
201 tracer := contourmap.FromFloat64s(r.XCells+2, r.YCells+2, r.Cells) 201 tracer := contourmap.FromFloat64s(r.XCells+2, r.YCells+2, r.Cells)
202 202
203 areas := make([]wkb.MultiPolygonGeom, len(heights)) 203 areas := make([]wkb.MultiPolygonGeom, len(heights))