[Schmitzm-commits] r342 - branches/1.0-gt2-2.6/src/schmitzm/geotools/styling

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Aug 31 12:26:02 CEST 2009


Author: mojays
Date: 2009-08-31 12:26:02 +0200 (Mon, 31 Aug 2009)
New Revision: 342

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java
Log:
gt2-2.6.x conversion bugs eliminated

Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java	2009-08-31 10:16:40 UTC (rev 341)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java	2009-08-31 10:26:02 UTC (rev 342)
@@ -49,6 +49,7 @@
 import java.util.SortedMap;
 import java.util.TreeMap;
 
+import javax.measure.unit.Unit;
 import javax.swing.Box;
 import javax.swing.BoxLayout;
 import javax.swing.ImageIcon;
@@ -326,7 +327,7 @@
 	 *            {@code null} sein)
 	 */
 	public static GridSampleDimension createDiscreteGridSampleDimension(
-			String name, ColorMap colorMap, double[] noDataValues, Unit unit) {
+			String name, ColorMap colorMap, double[] noDataValues, Unit<?> unit) {
 		if (colorMap.getColorMapEntries().length == 0)
 			return null;
 
@@ -380,8 +381,9 @@
 					// logischer, aber klappt nicht!?
 					NumberRange.create(colorMapMax + 3, colorMapMax + 4),
 //					new NumberRange(colorMapMax + 3, colorMapMax + 4),
-					NumberRange.create(lowerStart, colorMapMin - 1),
-//					new NumberRange(lowerStart, colorMapMin - 1)));
+					NumberRange.create(lowerStart, colorMapMin - 1)
+//					new NumberRange(lowerStart, colorMapMin - 1)
+			));
 
 		// Create the GridSampleDimension
 		GridSampleDimension gsd = new GridSampleDimension(name, categories



More information about the Schmitzm-commits mailing list