Revision: 4813
          http://sourceforge.net/p/jump-pilot/code/4813
Author:   ma15569
Date:     2016-02-04 16:08:53 +0000 (Thu, 04 Feb 2016)
Log Message:
-----------
Uncomment this code to correct a bug: saving to FLT, the rewrite original 
nodata value is rewritten with a fix value modifying raster statistics if 
nodata cells exist

Modified Paths:
--------------
    core/trunk/src/org/openjump/core/rasterimage/RasterImageIOUtils.java

Modified: core/trunk/src/org/openjump/core/rasterimage/RasterImageIOUtils.java
===================================================================
--- core/trunk/src/org/openjump/core/rasterimage/RasterImageIOUtils.java        
2016-02-02 21:00:14 UTC (rev 4812)
+++ core/trunk/src/org/openjump/core/rasterimage/RasterImageIOUtils.java        
2016-02-04 16:08:53 UTC (rev 4813)
@@ -304,11 +304,13 @@
                     + Double.toString(rstLayer.getLayerCellSize().x));
 
             String sNoDataVal = Double.toString(rstLayer.getNoDataValue());
-            if (Math.floor(defaultNoData) == defaultNoData)
+            //Uncomment this code. It seems to rewrite original nodata value 
with
+            //a fix value modifying raster statistics if nodata cells exists
+          /*  if (Math.floor(defaultNoData) == defaultNoData)
                 sNoDataVal = Integer.toString((int) defaultNoData);
             else {
                 sNoDataVal = Double.toString(defaultNoData);
-            }
+            }*/
             o.println("NODATA_value " + sNoDataVal);
             o.println("byteorder " + byteOrder);
             o.close();


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to