Revision 20119 trunk/libraries/libRaster/src/org/gvsig/raster/dataset/CompositeDataset.java
CompositeDataset.java | ||
---|---|---|
1203 | 1203 |
|
1204 | 1204 |
/* |
1205 | 1205 |
* (non-Javadoc) |
1206 |
* @see org.gvsig.raster.dataset.IRasterDataSource#getNoDataValue(int)
|
|
1206 |
* @see org.gvsig.raster.dataset.IRasterDataSource#loadGeoPointsFromRmf()
|
|
1207 | 1207 |
*/ |
1208 |
public double getNoDataValue(int dataset) {
|
|
1209 |
return RasterLibrary.defaultNoDataValue;
|
|
1208 |
public GeoPoint[] loadGeoPointsFromRmf() throws IOException {
|
|
1209 |
throw new IOException("Not implemented yet");
|
|
1210 | 1210 |
} |
1211 | 1211 |
|
1212 | 1212 |
/* |
1213 | 1213 |
* (non-Javadoc) |
1214 |
* @see org.gvsig.raster.dataset.IRasterDataSource#resetNoDataValue()
|
|
1214 |
* @see org.gvsig.raster.dataset.IRasterDataSource#saveGeoPointsToRmf(org.gvsig.raster.datastruct.GeoPoint[])
|
|
1215 | 1215 |
*/ |
1216 |
public void resetNoDataValue() { |
|
1216 |
public void saveGeoPointsToRmf(GeoPoint[] geoPoints) throws IOException { |
|
1217 |
throw new IOException("Not implemented yet"); |
|
1217 | 1218 |
} |
1218 | 1219 |
|
1219 | 1220 |
/* |
1220 | 1221 |
* (non-Javadoc) |
1221 |
* @see org.gvsig.raster.dataset.IRasterDataSource#setNoDataValue(int, double)
|
|
1222 |
* @see org.gvsig.raster.dataset.IRasterDataSource#getNoDataValue()
|
|
1222 | 1223 |
*/ |
1223 |
public void setNoDataValue(int dataset, double value) { |
|
1224 |
public double getNoDataValue() { |
|
1225 |
int n = mosaic.length; |
|
1226 |
int m = mosaic[0].length; |
|
1227 |
if ((n == 0) || (m == 0)) |
|
1228 |
return RasterLibrary.defaultNoDataValue; |
|
1229 |
return mosaic[0][0].getNoDataValue(); |
|
1224 | 1230 |
} |
1225 |
|
|
1231 |
|
|
1226 | 1232 |
/* |
1227 | 1233 |
* (non-Javadoc) |
1228 |
* @see org.gvsig.raster.dataset.IRasterDataSource#loadGeoPointsFromRmf()
|
|
1234 |
* @see org.gvsig.raster.dataset.IRasterDataSource#resetNoDataValue()
|
|
1229 | 1235 |
*/ |
1230 |
public GeoPoint[] loadGeoPointsFromRmf() throws IOException { |
|
1231 |
throw new IOException("Not implemented yet"); |
|
1236 |
public void resetNoDataValue() { |
|
1237 |
int n = mosaic.length; |
|
1238 |
int m = mosaic[0].length; |
|
1239 |
for (int row = 0; row < n; row++) |
|
1240 |
for (int col = 0; col < m; col++) |
|
1241 |
mosaic[row][col].resetNoDataValue(); |
|
1232 | 1242 |
} |
1233 | 1243 |
|
1234 | 1244 |
/* |
1235 | 1245 |
* (non-Javadoc) |
1236 |
* @see org.gvsig.raster.dataset.IRasterDataSource#saveGeoPointsToRmf(org.gvsig.raster.datastruct.GeoPoint[])
|
|
1246 |
* @see org.gvsig.raster.dataset.IRasterDataSource#setNoDataValue(double)
|
|
1237 | 1247 |
*/ |
1238 |
public void saveGeoPointsToRmf(GeoPoint[] geoPoints) throws IOException { |
|
1239 |
throw new IOException("Not implemented yet"); |
|
1248 |
public void setNoDataValue(double value) { |
|
1249 |
int n = mosaic.length; |
|
1250 |
int m = mosaic[0].length; |
|
1251 |
for (int row = 0; row < n; row++) |
|
1252 |
for (int col = 0; col < m; col++) |
|
1253 |
mosaic[row][col].setNoDataValue(value); |
|
1240 | 1254 |
} |
1241 | 1255 |
|
1242 |
public boolean isNoDataEnabled(int dataset) { |
|
1243 |
return false; |
|
1256 |
/* |
|
1257 |
* (non-Javadoc) |
|
1258 |
* @see org.gvsig.raster.dataset.IRasterDataSource#isNoDataEnabled() |
|
1259 |
*/ |
|
1260 |
public boolean isNoDataEnabled() { |
|
1261 |
int n = mosaic.length; |
|
1262 |
int m = mosaic[0].length; |
|
1263 |
if ((n == 0) || (m == 0)) |
|
1264 |
return false; |
|
1265 |
return mosaic[0][0].isNoDataEnabled(); |
|
1244 | 1266 |
} |
1245 | 1267 |
|
1246 |
public void setNoDataEnabled(int dataset, boolean enabled) { |
|
1268 |
/* |
|
1269 |
* (non-Javadoc) |
|
1270 |
* @see org.gvsig.raster.dataset.IRasterDataSource#setNoDataEnabled(boolean) |
|
1271 |
*/ |
|
1272 |
public void setNoDataEnabled(boolean enabled) { |
|
1273 |
int n = mosaic.length; |
|
1274 |
int m = mosaic[0].length; |
|
1275 |
for (int row = 0; row < n; row++) |
|
1276 |
for (int col = 0; col < m; col++) |
|
1277 |
mosaic[row][col].setNoDataEnabled(enabled); |
|
1247 | 1278 |
} |
1248 | 1279 |
} |
Also available in: Unified diff