Revision: 6662 http://sourceforge.net/p/jump-pilot/code/6662 Author: michaudm Date: 2020-12-27 22:51:35 +0000 (Sun, 27 Dec 2020) Log Message: ----------- Add nodata value in the index to avoid a NPE
Modified Paths: -------------- core/trunk/src/org/openjump/core/rasterimage/algorithms/VectorizeAlgorithm.java Modified: core/trunk/src/org/openjump/core/rasterimage/algorithms/VectorizeAlgorithm.java =================================================================== --- core/trunk/src/org/openjump/core/rasterimage/algorithms/VectorizeAlgorithm.java 2020-12-27 22:29:19 UTC (rev 6661) +++ core/trunk/src/org/openjump/core/rasterimage/algorithms/VectorizeAlgorithm.java 2020-12-27 22:51:35 UTC (rev 6662) @@ -156,6 +156,7 @@ final ArrayList<Double> vals = new ArrayList<Double>(); final int nx = gwrapper.getNX();//rstLayer.getLayerGridExtent().getNX(); final int ny = gwrapper.getNY();// rstLayer.getLayerGridExtent().getNY(); + vals.add(nodata); for (int x = 0; x < nx; x++) {//cols for (int y = 0; y < ny; y++) {//rows final double value = gwrapper.getCellValueAsDouble(x, y, band); _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel