Revision 23718 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/io/PngWriter.java
PngWriter.java | ||
---|---|---|
149 | 149 |
* @throws IOException |
150 | 150 |
*/ |
151 | 151 |
public void dataWrite() throws IOException, InterruptedException { |
152 |
gdalWriter.setColorBandsInterpretation(colorInterp.getValues()); |
|
152 |
if(colorInterp != null) |
|
153 |
gdalWriter.setColorBandsInterpretation(colorInterp.getValues()); |
|
153 | 154 |
gdalWriter.dataWrite(); |
154 | 155 |
if (gdalWriter.isWrite()) { |
155 | 156 |
gdalWriter.writeClose(); |
Also available in: Unified diff