org.cresques.io
Class TifGeoRefFile

java.lang.Object
  extended byorg.cresques.io.GeoFile
      extended byorg.cresques.io.GeoRasterFile
          extended byorg.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"

Field Summary
 
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
TifGeoRefFile(IProjection proj, java.lang.String fName)
           
 
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 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
 

Constructor Detail

TifGeoRefFile

public TifGeoRefFile(IProjection proj,
                     java.lang.String fName)
Method Detail

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 - ancho
height - alto
rp - reproyección
img - 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 X
y - 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