Mercurial > gemma
comparison pkg/imports/sr.go @ 4640:fb09a43b062e
Decouple the tracing of the iso areas from the octree data structure.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 11 Oct 2019 20:09:37 +0200 |
parents | 4380f5483c03 |
children | 89a72e0e2f9b |
comparison
equal
deleted
inserted
replaced
4639:4380f5483c03 | 4640:fb09a43b062e |
---|---|
879 defer func() { | 879 defer func() { |
880 feedback.Info("Generating iso areas took %s.", | 880 feedback.Info("Generating iso areas took %s.", |
881 time.Since(total)) | 881 time.Since(total)) |
882 }() | 882 }() |
883 | 883 |
884 areas := tree.TraceAreas(heights, isoCellSize) | 884 areas := octree.TraceAreas(heights, isoCellSize, tree.Min, tree.Max, tree.Value) |
885 | 885 |
886 return storeAreas( | 886 return storeAreas( |
887 ctx, tx, feedback, | 887 ctx, tx, feedback, |
888 areas, tree.EPSG, heights, id) | 888 areas, tree.EPSG, heights, id) |
889 } | 889 } |