Revision 25401 trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/process/GeoreferencingProcess.java
GeoreferencingProcess.java | ||
---|---|---|
132 | 132 |
IRasterDataSource dsetCopy = null; |
133 | 133 |
dsetCopy = rasterSE.getDataSource().newDataset(); |
134 | 134 |
BufferFactory bufferFactory = new BufferFactory(dsetCopy); |
135 |
if (!RasterBuffer.loadInMemory(dsetCopy)) |
|
136 |
bufferFactory.setReadOnly(true); |
|
135 |
bufferFactory.setReadOnly(true); |
|
137 | 136 |
try { |
138 | 137 |
imageGrid = new Grid(bufferFactory); |
139 | 138 |
}catch (RasterBufferInvalidException e) { |
... | ... | |
156 | 155 |
double p3[]=transform.getCoordMap(0,rasterSE.getPxHeight()); |
157 | 156 |
double p4[]=transform.getCoordMap(rasterSE.getPxWidth(),rasterSE.getPxHeight()); |
158 | 157 |
|
159 |
|
|
160 | 158 |
double xmin=Math.min(p1[0],p3[0]); |
161 | 159 |
double ymin=Math.min(p3[1],p4[1]); |
162 | 160 |
double xmax=Math.max(p2[0],p4[0]); |
Also available in: Unified diff