|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cresques.io.GeoFile org.cresques.io.GeoRasterFile org.cresques.io.GdalFile
Field Summary | |
static int |
BAND_HEIGHT
|
protected org.cresques.io.GdalNative |
file
|
Fields inherited from class org.cresques.io.GeoRasterFile |
bandCount, bBandNr, BLUE_BAND, doTransparency, gBandNr, GREEN_BAND, rBandNr, RED_BAND, tFilter, updatable |
Fields inherited from class org.cresques.io.GeoFile |
bytesReaded, extent, lineCnt |
Constructor Summary | |
GdalFile(IProjection proj,
java.lang.String fName)
|
Method Summary | |
void |
close()
Cierra el fichero y libera los recursos. |
int |
getBlockSize()
Devuelve el tamaño de bloque |
java.lang.Object |
getData(int x,
int y,
int band)
Obtiene el valor del raster en la coordenada que se le pasa. |
java.lang.String |
getGeogCS()
Obtiene el sistema de coordenadas geograficas |
int |
getHeight()
Obtiene el ancho de la imagen |
RasterBuf |
getRaster(int width,
int height,
ICoordTrans rp)
|
int |
getUTM()
Devuelve el número de zona UTM |
Extent |
getView()
Obtiene el extent asignado |
int |
getWidth()
Obtiene el ancho de la imagen |
byte[] |
getWindow(int ulX,
int ulY,
int sizeX,
int sizeY,
int band)
Devuelve los datos de una ventana solicitada |
boolean |
getZone()
Obtiene la zona (Norte / Sur) |
GeoFile |
load()
Carga un fichero raster. |
void |
reProject(ICoordTrans rp)
Reproyección. |
void |
setBand(int flag,
int bandNr)
Asocia un colorBand al rojo, verde o azul. |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Asigna al objeto Image los valores con los dato de la imagen contenidos en el vector de enteros. |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize,
int flags)
Asigna al objeto Image la mezcla entre los valores que ya tiene y los valores con los dato de la imagen contenidos en el vector de enteros. |
protected void |
setRGBLine(java.awt.image.BufferedImage image,
int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize,
int origBand,
int destBandFlag)
Asigna al objeto Image la mezcla entre los valores que ya tiene y los valores con los dato de la imagen contenidos en el vector de enteros. |
void |
setView(Extent e)
Asigna un nuevo Extent |
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp)
Actualiza la imagen |
java.awt.Image |
updateImage(int width,
int height,
ICoordTrans rp,
java.awt.Image img,
int origBand,
int destBandFlag)
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, setDataType, setTransparency, setTransparency, setUpdatable |
Methods inherited from class org.cresques.io.GeoFile |
filterWS, getExtent, getFileSize, getName, getProjection, getTime, setFileSize, setName, setProjection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BAND_HEIGHT
protected org.cresques.io.GdalNative file
Constructor Detail |
public GdalFile(IProjection proj, java.lang.String fName)
Method Detail |
public GeoFile load()
GeoRasterFile
load
in class GeoRasterFile
public void close()
GeoRasterFile
close
in class GeoRasterFile
public void setBand(int flag, int bandNr)
GeoRasterFile
setBand
in class GeoRasterFile
flag
- cual (o cuales) de las bandas.public void setView(Extent e)
GeoRasterFile
setView
in class GeoRasterFile
e
- Extentpublic Extent getView()
GeoRasterFile
getView
in class GeoRasterFile
public int getWidth()
GeoRasterFile
getWidth
in class GeoRasterFile
public int getHeight()
GeoRasterFile
getHeight
in class GeoRasterFile
public void reProject(ICoordTrans rp)
GeoRasterFile
reProject
in interface Projected
reProject
in class GeoRasterFile
rp
- Coordenadas de la transformaciónpublic java.awt.Image updateImage(int width, int height, ICoordTrans rp)
GeoRasterFile
updateImage
in class GeoRasterFile
width
- anchoheight
- altorp
- Reproyección
public RasterBuf getRaster(int width, int height, ICoordTrans rp)
protected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pprotected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize, int flags)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pasoflags
- banda que se va a sustituir (Ctes de GeoRasterFile)protected void setRGBLine(java.awt.image.BufferedImage image, int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize, int origBand, int destBandFlag)
image
- imagen con los datos actualesstartX
- inicio de la posición en X dentro de la imagenstartY
- inicio de la posición en X dentro de la imagenw
- Ancho de la imagenh
- Alto de la imagenrgbArray
- vector que contiene la banda que se va a sustituiroffset
- desplazamientoscansize
- tamaño de imagen recorrida por cada pasoorigBand
- Banda origen del GeoRasterFiledestBandFlag
- banda que se va a sustituir (Ctes de GeoRasterFile)public java.awt.Image updateImage(int width, int height, ICoordTrans rp, java.awt.Image img, int origBand, int destBandFlag)
GeoRasterFile
updateImage
in class GeoRasterFile
width
- anchoheight
- altorp
- reproyecciónimg
- imagen
public java.lang.Object getData(int x, int y, int band)
GeoRasterFile
getData
in class GeoRasterFile
x
- coordenada Xy
- coordenada Y
public byte[] getWindow(int ulX, int ulY, int sizeX, int sizeY, int band)
getWindow
in class GeoRasterFile
ulX
- coordenada X superior izda.ulY
- coordenada Y superior derecha.sizeX
- tamaño en X de la ventana.sizeY
- tamaño en Y de la ventana.band
- Banda solicitada.public boolean getZone()
public int getUTM()
public java.lang.String getGeogCS()
public int getBlockSize()
getBlockSize
in class GeoRasterFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |