Revision 19896
trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/grid/roi/VectorialROI.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
Rectangle2D geometryBounds = geometry.getBounds(); |
78 | 78 |
|
79 |
/*double minX = geometryBounds.getMinX() - Math.abs(geometryBounds.getMinX() - getGrid().getGridExtent().getMin().getX()) % cellSize;
|
|
79 |
double minX = geometryBounds.getMinX() - Math.abs(geometryBounds.getMinX() - getGrid().getGridExtent().getMin().getX()) % cellSize; |
|
80 | 80 |
double minY = (geometryBounds.getMinY()) - (Math.abs(geometryBounds.getMinY() - getGrid().getGridExtent().getMin().getY())) % cellSize; |
81 | 81 |
double maxX = (geometryBounds.getMaxX() + cellSize) - Math.abs(geometryBounds.getMaxX() - getGrid().getGridExtent().getMin().getX()) % cellSize; |
82 |
double maxY = (geometryBounds.getMaxY() + cellSize) - (Math.abs(geometryBounds.getMaxY() - getGrid().getGridExtent().getMin().getY())) % cellSize;*/ |
|
83 |
double minX = geometryBounds.getMinX(); |
|
84 |
double minY = geometryBounds.getMinY(); |
|
85 |
double maxX = geometryBounds.getMaxX(); |
|
86 |
double maxY = geometryBounds.getMaxY(); |
|
82 |
double maxY = (geometryBounds.getMaxY() + cellSize) - (Math.abs(geometryBounds.getMaxY() - getGrid().getGridExtent().getMin().getY())) % cellSize; |
|
87 | 83 |
|
88 | 84 |
if (geometries.size() > 1){ |
89 | 85 |
minX = Math.min(minX,getGridExtent().getMin().getX()); |
Also available in: Unified diff