Revision 20820 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/io/GdalNative.java

View differences:

GdalNative.java
132 132
		for (int i = 0; i < getRasterCount(); i++) {
133 133
			GdalRasterBand rb = getRasterBand(i + 1);
134 134
			String colorInt = getColorInterpretationName(rb.getRasterColorInterpretation());
135
			metadata.setNoDataValue(i, rb.getRasterNoDataValue());
135
			metadata.setNoDataValue(i, (rb.getRasterNoDataValue() == -9999.0) ? RasterLibrary.defaultNoDataValue : rb.getRasterNoDataValue());
136 136
			colorInterpr.setColorInterpValue(i, colorInt);
137 137
			if (colorInt.equals("Alpha"))
138 138
				fileTransparency.setTransparencyBand(i);

Also available in: Unified diff