Revision 9524 branches/piloto3d/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/RasterAdapter.java
RasterAdapter.java | ||
---|---|---|
53 | 53 |
import org.cresques.cts.ICoordTrans; |
54 | 54 |
import org.cresques.filter.RasterFilterStack; |
55 | 55 |
import org.cresques.io.GeoRasterFile; |
56 |
import org.cresques.io.data.Grid; |
|
56 | 57 |
|
57 | 58 |
import com.hardcode.driverManager.Driver; |
58 | 59 |
import com.iver.cit.gvsig.fmap.ViewPort; |
60 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
|
59 | 61 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
62 |
import com.iver.cit.gvsig.fmap.drivers.GeorreferencedRasterDriver; |
|
60 | 63 |
import com.iver.cit.gvsig.fmap.drivers.RasterDriver; |
61 | 64 |
import com.iver.utiles.swing.threads.Cancellable; |
62 | 65 |
|
... | ... | |
111 | 114 |
} |
112 | 115 |
|
113 | 116 |
/** |
114 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
|
|
117 |
* @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, ISymbol)
|
|
115 | 118 |
*/ |
116 | 119 |
public void draw(BufferedImage image, Graphics2D g, ViewPort vp, Cancellable cancel) throws DriverIOException { |
117 | 120 |
((RasterDriver) driver).draw(image,g, vp); |
... | ... | |
242 | 245 |
* @return true si est? georreferenciada y false si no lo est?. |
243 | 246 |
*/ |
244 | 247 |
public boolean isGeoreferenced() { |
245 |
return ((RasterDriver)driver).isGeoreferenced(); |
|
248 |
return ((GeorreferencedRasterDriver)driver).isGeoreferenced();
|
|
246 | 249 |
} |
250 |
|
|
251 |
/** |
|
252 |
* Obtiene el grid asociado |
|
253 |
* @return grid |
|
254 |
*/ |
|
255 |
public Grid getGrid(){ |
|
256 |
return ((RasterDriver)driver).getGrid(); |
|
257 |
} |
|
247 | 258 |
} |
Also available in: Unified diff