Revision 17661
trunk/libraries/libRaster/src/org/gvsig/raster/dataset/CompositeDataset.java | ||
---|---|---|
24 | 24 |
import java.io.IOException; |
25 | 25 |
|
26 | 26 |
import org.cresques.cts.IProjection; |
27 |
import org.gvsig.raster.RasterLibrary; |
|
27 | 28 |
import org.gvsig.raster.buffer.RasterBuffer; |
28 | 29 |
import org.gvsig.raster.dataset.io.RasterDriverException; |
29 | 30 |
import org.gvsig.raster.dataset.properties.DatasetColorInterpretation; |
... | ... | |
488 | 489 |
for (int row = 0; row < n; row++) { |
489 | 490 |
for (int col = 0; col < m; col++) { |
490 | 491 |
if(mosaic[row][col] != null && |
491 |
RasterUtilities.isInside(new Point2D.Double(x, y), mosaic[row][col].getExtent(), mosaic[row][col].getAffineTransform()))
|
|
492 |
RasterUtilities.isInside(new Point2D.Double(x, y), mosaic[row][col].getExtent(), mosaic[row][col].getAffineTransform()))
|
|
492 | 493 |
return new Point2D.Double(row, col); |
493 | 494 |
} |
494 | 495 |
} |
... | ... | |
514 | 515 |
for (int row = 0; row < n; row++) |
515 | 516 |
for (int col = 0; col < m; col++) |
516 | 517 |
if(mosaic[row][col] != null && |
517 |
RasterUtilities.intersects(new Extent(ulx, uly, lrx, lry), mosaic[row][col].getExtent(), mosaic[row][col].getAffineTransform())) {
|
|
518 |
RasterUtilities.intersects(new Extent(ulx, uly, lrx, lry), mosaic[row][col].getExtent(), mosaic[row][col].getAffineTransform())) {
|
|
518 | 519 |
for (int k = 0; k < mosaic.length; k++) |
519 | 520 |
result[row][col] = mosaic[row][col]; |
520 | 521 |
} |
... | ... | |
877 | 878 |
|
878 | 879 |
//Intersecci?n entre el ?rea pedida y el tile. Si intersectan se devuelve true |
879 | 880 |
if(((x <= p1.getX() && w >= p1.getX()) || (x <= p2.getX() && w >= p2.getX())) && |
880 |
((y <= p1.getY() && h >= p1.getY()) || (y <= p2.getY() && h >= p2.getY())))
|
|
881 |
((y <= p1.getY() && h >= p1.getY()) || (y <= p2.getY() && h >= p2.getY())))
|
|
881 | 882 |
return true; |
882 | 883 |
return false; |
883 | 884 |
} |
... | ... | |
1184 | 1185 |
public boolean overviewsSupport() { |
1185 | 1186 |
return false; |
1186 | 1187 |
} |
1187 |
} |
|
1188 | 1188 |
|
1189 |
/* |
|
1190 |
* (non-Javadoc) |
|
1191 |
* @see org.gvsig.raster.dataset.IRasterDataSource#getNoDataValue(int) |
|
1192 |
*/ |
|
1193 |
public double getNoDataValue(int dataset) { |
|
1194 |
return RasterLibrary.defaultNoDataValue; |
|
1195 |
} |
|
1196 |
|
|
1197 |
/* |
|
1198 |
* (non-Javadoc) |
|
1199 |
* @see org.gvsig.raster.dataset.IRasterDataSource#resetNoDataValue() |
|
1200 |
*/ |
|
1201 |
public void resetNoDataValue() { |
|
1202 |
} |
|
1203 |
|
|
1204 |
/* |
|
1205 |
* (non-Javadoc) |
|
1206 |
* @see org.gvsig.raster.dataset.IRasterDataSource#setNoDataValue(int, double) |
|
1207 |
*/ |
|
1208 |
public void setNoDataValue(int dataset, double value) { |
|
1209 |
} |
|
1210 |
} |
Also available in: Unified diff