Revision 6220 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.buffer/org.gvsig.raster.lib.buffer.impl/src/main/java/org/gvsig/raster/lib/buffer/impl/ClippedBuffer.java
ClippedBuffer.java | ||
---|---|---|
44 | 44 |
} catch (GeometryOperationNotSupportedException | GeometryOperationException e1) { |
45 | 45 |
throw new CreateBufferException(e1); |
46 | 46 |
} |
47 |
this.rows = (int)Math.round(this.envelope.getLength(1)/this.buffer.getPixelSizeY()); |
|
48 |
this.columns = (int)Math.round(this.envelope.getLength(0)/this.buffer.getPixelSizeX()); |
|
47 | 49 |
|
50 |
this.firstRow = (int)(Math.round((this.envelope.getMinimum(1)-this.buffer.getEnvelope().getMinimum(1))/this.buffer.getPixelSizeY())); |
|
51 |
this.firstColumn = (int)(Math.round((this.envelope.getMinimum(0)-this.buffer.getEnvelope().getMinimum(0))/this.buffer.getPixelSizeX())); |
|
52 |
|
|
53 |
this.projection = buffer.getProjection(); |
|
54 |
|
|
48 | 55 |
this.bands = new ArrayList<Band>(); |
49 | 56 |
|
50 | 57 |
try { |
... | ... | |
53 | 60 |
throw new CreateBufferException(e); |
54 | 61 |
} |
55 | 62 |
|
56 |
this.rows = (int)Math.round(this.envelope.getLength(1)/this.buffer.getPixelSizeY()); |
|
57 |
this.columns = (int)Math.round(this.envelope.getLength(0)/this.buffer.getPixelSizeX()); |
|
58 | 63 |
|
59 |
this.firstRow = (int)(Math.round((this.envelope.getMinimum(1)-this.buffer.getEnvelope().getMinimum(1))/this.buffer.getPixelSizeY())); |
|
60 |
this.firstColumn = (int)(Math.round((this.envelope.getMinimum(0)-this.buffer.getEnvelope().getMinimum(0))/this.buffer.getPixelSizeX())); |
|
61 | 64 |
|
62 |
this.projection = buffer.getProjection(); |
|
63 | 65 |
} |
64 | 66 |
|
65 | 67 |
private void createBands(Band[] bands) throws BandException { |
Also available in: Unified diff