Mercurial > gemma
comparison pkg/imports/sr.go @ 3949:c1be6aacefb1 v3.1-releases
Don't create extra inbetween class breaks.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Mon, 15 Jul 2019 16:57:00 +0200 |
parents | 4b5c4007fc5d |
children | e467159d04cc |
comparison
equal
deleted
inserted
replaced
3934:d78af8354b95 | 3949:c1be6aacefb1 |
---|---|
842 for ; h <= tree.Max.Z; h += contourStepWidth { | 842 for ; h <= tree.Max.Z; h += contourStepWidth { |
843 heights = append(heights, h) | 843 heights = append(heights, h) |
844 } | 844 } |
845 } else { | 845 } else { |
846 heights = octree.ExtrapolateClassBreaks(heights, tree.Min.Z, tree.Max.Z) | 846 heights = octree.ExtrapolateClassBreaks(heights, tree.Min.Z, tree.Max.Z) |
847 heights = octree.InBetweenClassBreaks(heights, 0.05, 2) | 847 // We set steps for InBetweenClassBreaks to 1, so it |
848 // becomes a null operation. The extra class breaks | |
849 // were considered unexpected and confusing by the | |
850 // users. Once we get filled polygones the visual will | |
851 // be considerably different anyway. -- sw | |
852 heights = octree.InBetweenClassBreaks(heights, 0.05, 1) | |
848 } | 853 } |
849 | 854 |
850 /* | 855 /* |
851 for i, v := range heights { | 856 for i, v := range heights { |
852 fmt.Printf("%d %.2f\n", i, v) | 857 fmt.Printf("%d %.2f\n", i, v) |