org.cresques.io
Class TifGeoRefFile
java.lang.Object
org.cresques.io.GeoFile
org.cresques.io.GeoRasterFile
org.cresques.io.TifGeoRefFile
- All Implemented Interfaces:
- Extent.Has, Projected
- public class TifGeoRefFile
- extends GeoRasterFile
Soporte para ficheros georeferenciados con World File (.tfw)
- Author:
- "Luis W. Sevilla" , "José Morell Rama"
Method Summary |
void |
close()
|
int |
getBlockSize()
|
java.lang.Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa.
|
int |
getHeight()
|
Extent |
getView()
|
int |
getWidth()
|
byte[] |
getWindow(int ulX,
int ulY,
int sizeX,
int sizeY,
int band)
|
GeoFile |
load()
|
void |
reProject(ICoordTrans rp)
|
void |
setTransparency(boolean t)
|
void |
setTransparency(int t)
|
void |
setView(Extent e)
|
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp)
|
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int flags)
|
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int origBand,
int destBand)
Actualiza la/s banda/s especificadas en la imagen. |
Methods inherited from class org.cresques.io.GeoRasterFile |
cornersToWorldFile, fileIsSupported, getAlpha, getBand, getBandCount, getContour, getDataType, getObjects, getTransparency, openFile, printWF, registerExtension, saveWF, setAlpha, setBand, setDataType, setUpdatable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TifGeoRefFile
public TifGeoRefFile(IProjection proj,
java.lang.String fName)
load
public GeoFile load()
- Specified by:
load
in class GeoRasterFile
getWidth
public int getWidth()
- Specified by:
getWidth
in class GeoRasterFile
getHeight
public int getHeight()
- Specified by:
getHeight
in class GeoRasterFile
setView
public void setView(Extent e)
- Specified by:
setView
in class GeoRasterFile
getView
public Extent getView()
- Specified by:
getView
in class GeoRasterFile
setTransparency
public void setTransparency(boolean t)
- Overrides:
setTransparency
in class GeoRasterFile
setTransparency
public void setTransparency(int t)
- Overrides:
setTransparency
in class GeoRasterFile
updateImage
public java.awt.Image updateImage(int width,
int height,
ICoordTrans rp)
- Specified by:
updateImage
in class GeoRasterFile
reProject
public void reProject(ICoordTrans rp)
- Specified by:
reProject
in interface Projected
- Specified by:
reProject
in class GeoRasterFile
close
public void close()
- Specified by:
close
in class GeoRasterFile
updateImage
public java.awt.Image updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int flags)
updateImage
public java.awt.Image updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int origBand,
int destBand)
- Description copied from class:
GeoRasterFile
- Actualiza la/s banda/s especificadas en la imagen.
- Specified by:
updateImage
in class GeoRasterFile
- Parameters:
width
- anchoheight
- altorp
- reproyecciónimg
- imagen
- Returns:
- img
getData
public java.lang.Object getData(int x,
int y,
int band)
- Description copied from class:
GeoRasterFile
- Obtiene el valor del raster en la coordenada que se le pasa.
El valor será Double, Int, Byte, etc. dependiendo del tipo de
raster.
- Specified by:
getData
in class GeoRasterFile
- Parameters:
x
- coordenada Xy
- coordenada Y
- Returns:
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in class GeoRasterFile
getWindow
public byte[] getWindow(int ulX,
int ulY,
int sizeX,
int sizeY,
int band)
- Specified by:
getWindow
in class GeoRasterFile