[Schmitzm-commits] r935 - trunk/src/gtmig/org/geotools/gce/arcgrid

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 8 12:45:08 CEST 2010


Author: mojays
Date: 2010-07-08 12:45:08 +0200 (Thu, 08 Jul 2010)
New Revision: 935

Modified:
   trunk/src/gtmig/org/geotools/gce/arcgrid/ArcGridRaster.java
Log:
Comments about changes added to ArcGridRaster.

Modified: trunk/src/gtmig/org/geotools/gce/arcgrid/ArcGridRaster.java
===================================================================
--- trunk/src/gtmig/org/geotools/gce/arcgrid/ArcGridRaster.java	2010-07-08 10:27:59 UTC (rev 934)
+++ trunk/src/gtmig/org/geotools/gce/arcgrid/ArcGridRaster.java	2010-07-08 10:45:08 UTC (rev 935)
@@ -50,8 +50,14 @@
  *        raster). Don't know how to realize this with {@link ArcGridFormat}.<br>
  *        Maybe: {@code ArcGridReader.getMetaDataValue(..)}
  *        </li>
- *    <li>...</li>
+ *    <li>To support negative cell values, the constants {@code Double.MIN_VALUE}
+ *        and {@code Double.MAX_VALUE} were replaced with {@code Double.NEGATIVE_INFINITY}
+ *        and {@code Double.POSITIVE_INFINITY}.</li>
+ *    <li>BugFix: Because on writing the raster the min- and max-values are NOT recalculated
+ *        it makes no sense to initialize these variables. So these lines
+ *        were outlined (line 566-568).</li>
  * </ul>
+ * 
  * Nevertheless we will try to avoid this class... but later.
  * @deprecated
  * <hr>
@@ -556,11 +562,11 @@
         out.print(NODATA_VALUE);
         spaces(out, 2);
         out.println(noData);
-
+//MS-01.so
 //        // reset min and max
 //        minValue = Double.MIN_VALUE;
 //        maxValue = Double.MAX_VALUE;
-
+//MS-01.eo
         // a buffer to flush each line to
         // this technique makes things a bit quicker because buffer.append()
         // internally calls new FloatingDecimal(double).appendTo(StringBuffer)



More information about the Schmitzm-commits mailing list