Revision 3483 org.gvsig.raster.wcs/trunk/org.gvsig.raster.wcs/org.gvsig.raster.wcs.io/src/main/java/org/gvsig/raster/wcs/io/WCSConnector.java
WCSConnector.java | ||
---|---|---|
203 | 203 |
lyr.setTimePositions(cov.getTimePositions()); |
204 | 204 |
|
205 | 205 |
RectifiedGrid rf = cov.getRectifiedGrid(); |
206 |
int w = rf.getHighGridEnvelopLimits()[0][0] - rf.getLowGridEnvelopLimits()[0][0]; |
|
207 |
int h = rf.getHighGridEnvelopLimits()[0][1] - rf.getLowGridEnvelopLimits()[0][1]; |
|
206 |
if(rf != null){ |
|
207 |
int w = rf.getHighGridEnvelopLimits()[0][0] - rf.getLowGridEnvelopLimits()[0][0]; |
|
208 |
int h = rf.getHighGridEnvelopLimits()[0][1] - rf.getLowGridEnvelopLimits()[0][1]; |
|
209 |
|
|
210 |
lyr.setWidth(w); |
|
211 |
lyr.setHeight(h); |
|
212 |
} |
|
208 | 213 |
|
209 |
lyr.setWidth(w); |
|
210 |
lyr.setHeight(h); |
|
211 |
|
|
212 | 214 |
// max res |
213 | 215 |
lyr.setMaxRes(new Point2D.Double(cov.getResX(), cov.getResY())); |
214 | 216 |
|
Also available in: Unified diff