Revision: 6531
          http://sourceforge.net/p/jump-pilot/code/6531
Author:   ma15569
Date:     2020-09-25 07:57:37 +0000 (Fri, 25 Sep 2020)
Log Message:
-----------
Correct a error: h+1 and w+1 create two extra stripes with an unusual "0" 
value, out ofn range values

Modified Paths:
--------------
    
core/trunk/src/org/openjump/core/rasterimage/sextante/rasterWrappers/GridRasterWrapper.java

Modified: 
core/trunk/src/org/openjump/core/rasterimage/sextante/rasterWrappers/GridRasterWrapper.java
===================================================================
--- 
core/trunk/src/org/openjump/core/rasterimage/sextante/rasterWrappers/GridRasterWrapper.java
 2020-09-24 07:09:05 UTC (rev 6530)
+++ 
core/trunk/src/org/openjump/core/rasterimage/sextante/rasterWrappers/GridRasterWrapper.java
 2020-09-25 07:57:37 UTC (rev 6531)
@@ -239,7 +239,7 @@
         final int w = matrix.length;
         final int h = matrix[0].length;
         final WritableRaster raster = RasterFactory.createBandedRaster(
-                DataBuffer.TYPE_FLOAT, w + 1, h + 1, 1, null);
+                DataBuffer.TYPE_FLOAT, w, h, 1, null);
         for (int i = 0; i < w; i++) {
             for (int j = 0; j < h; j++) {
                 raster.setSample(i, j, 0, matrix[i][j]);



_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to