changeset 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 d78af8354b95
children 2db4b8693408
files pkg/imports/sr.go
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/imports/sr.go	Thu Jul 11 19:21:03 2019 +0200
+++ b/pkg/imports/sr.go	Mon Jul 15 16:57:00 2019 +0200
@@ -844,7 +844,12 @@
 		}
 	} else {
 		heights = octree.ExtrapolateClassBreaks(heights, tree.Min.Z, tree.Max.Z)
-		heights = octree.InBetweenClassBreaks(heights, 0.05, 2)
+		// We set steps for InBetweenClassBreaks to 1, so it
+		// becomes a null operation.  The extra class breaks
+		// were considered unexpected and confusing by the
+		// users.  Once we get filled polygones the visual will
+		// be considerably different anyway. -- sw
+		heights = octree.InBetweenClassBreaks(heights, 0.05, 1)
 	}
 
 	/*