Mercurial > gemma
comparison pkg/imports/sr.go @ 3951:e467159d04cc
Merged changes from v3.1.1
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 15 Jul 2019 17:09:01 +0200 |
parents | d668742c8978 c1be6aacefb1 |
children | cb4fda122321 |
comparison
equal
deleted
inserted
replaced
3948:5020128dc5a0 | 3951:e467159d04cc |
---|---|
862 for ; h <= tree.Max.Z; h += contourStepWidth { | 862 for ; h <= tree.Max.Z; h += contourStepWidth { |
863 heights = append(heights, h) | 863 heights = append(heights, h) |
864 } | 864 } |
865 } else { | 865 } else { |
866 heights = octree.ExtrapolateClassBreaks(heights, tree.Min.Z, tree.Max.Z) | 866 heights = octree.ExtrapolateClassBreaks(heights, tree.Min.Z, tree.Max.Z) |
867 heights = octree.InBetweenClassBreaks(heights, 0.05, 2) | 867 // We set steps for InBetweenClassBreaks to 1, so it |
868 // becomes a null operation. The extra class breaks | |
869 // were considered unexpected and confusing by the | |
870 // users. Once we get filled polygones the visual will | |
871 // be considerably different anyway. -- sw | |
872 heights = octree.InBetweenClassBreaks(heights, 0.05, 1) | |
868 } | 873 } |
869 | 874 |
870 /* | 875 /* |
871 for i, v := range heights { | 876 for i, v := range heights { |
872 fmt.Printf("%d %.2f\n", i, v) | 877 fmt.Printf("%d %.2f\n", i, v) |