|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.gvsig.mobile.fmap.driver.raster.ecw.EcwRasterDriver
This is the ECW driver based on JNI access to Ermapper libraries.
EcwReader
,
AffineTransform
Field Summary | |
static int |
UNITS_DEGREES
Raster units constants |
static int |
UNITS_FEET
Raster units constants |
static int |
UNITS_METERS
Raster units constants |
static int |
UNITS_UNKNOWN
Raster units constants |
Fields inherited from interface es.prodevelop.gvsig.mobile.fmap.driver.raster.RasterDriver |
ONE_PIXEL_IMAGE_ERROR, ONE_PIXEL_NO_DATA |
Constructor Summary | |
EcwRasterDriver(ViewPort vp)
Constructor |
Method Summary | |
void |
close()
Thios method tries to close the current ECW file. |
void |
draw(java.awt.Graphics2D g,
ViewPort viewPort)
draws the image on the provided Graphics object |
boolean |
fileAccepted(java.io.File fName)
Tells whether the provided file is accepted as a ECW file. |
java.awt.geom.AffineTransform |
getAffineTransform()
Gets the current affine transform |
int |
getBandCount()
|
java.lang.Object |
getData(int x,
int y,
int band)
Gets the data associated with the given coordinates and band index. |
java.lang.String |
getFilePath()
|
java.awt.geom.Rectangle2D |
getFullExtent()
Obtiene la extensión en coordenadas del mundo real que ocupa este raster |
double |
getGeoHeight()
|
double |
getGeoWidth()
|
long |
getHandler()
|
int |
getHeight()
|
double |
getMinGeoX()
|
double |
getMinGeoY()
|
java.lang.String |
getName()
Debe devolver un objeto que se asociará en el manager al driver. |
int |
getNumBands()
Obtiene el número de bandas del raster |
java.lang.String |
getPath()
|
int[] |
getPixel(double wcx,
double wcy)
Gets the RGB values of the pixel of interest |
IProjection |
getProjection()
Obtiene la proyección en la que está el raster |
int |
getRasterDataType()
|
int |
getTransparency()
|
int |
getUnits()
|
int |
getWidth()
|
void |
initialize()
Initialize method, not used right now. |
void |
initialize(IProjection p)
Initializes the driver, simply sets the projection. |
boolean |
isGeoreferenced()
Obtiene el flag que dice si la imagen está o no georreferenciada |
boolean |
open()
Opens the raster file. |
void |
open(java.io.File f)
This method opens the provided file. |
void |
setAffineTransform(java.awt.geom.AffineTransform t)
Sets the current affine transform |
void |
setProjection(IProjection p)
Sets the projection. |
void |
setTransparency(int t)
Sets the transparency value of this raster |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int UNITS_UNKNOWN
public static final int UNITS_METERS
public static final int UNITS_DEGREES
public static final int UNITS_FEET
Constructor Detail |
public EcwRasterDriver(ViewPort vp)
vp
- a reference to the viewport to perform geographic computationsMethod Detail |
public boolean open()
public double getGeoHeight()
public double getGeoWidth()
public int getHeight()
public long getHandler()
public double getMinGeoX()
public double getMinGeoY()
public int getBandCount()
public java.lang.String getPath()
public int getUnits()
public int getWidth()
public void initialize(IProjection p) throws java.io.IOException
initialize
in interface GeorreferencedRasterDriver
p
- the raster projection
java.io.IOException
public IProjection getProjection()
GeorreferencedRasterDriver
getProjection
in interface GeorreferencedRasterDriver
public void setProjection(IProjection p)
setProjection
in interface GeorreferencedRasterDriver
p
- the raster projectionpublic java.awt.geom.Rectangle2D getFullExtent()
GeorreferencedRasterDriver
getFullExtent
in interface GeorreferencedRasterDriver
public boolean isGeoreferenced()
GeorreferencedRasterDriver
isGeoreferenced
in interface GeorreferencedRasterDriver
public void setAffineTransform(java.awt.geom.AffineTransform t)
setAffineTransform
in interface GeorreferencedRasterDriver
t
- the new affine transformpublic java.awt.geom.AffineTransform getAffineTransform()
getAffineTransform
in interface GeorreferencedRasterDriver
public boolean fileAccepted(java.io.File fName)
fileAccepted
in interface RasterDriver
fName
- file object of interest
public void open(java.io.File f) throws java.io.IOException
open
in interface RasterDriver
f
- the ECW file to be opened
java.io.IOException
public void initialize() throws java.io.IOException
initialize
in interface RasterDriver
java.io.IOException
public void close() throws java.io.IOException
close
in interface RasterDriver
java.io.IOException
public int getNumBands()
RasterDriver
getNumBands
in interface RasterDriver
public int getTransparency()
getTransparency
in interface RasterDriver
public void setTransparency(int t)
setTransparency
in interface RasterDriver
t
- the new transparency value of this rasterpublic void draw(java.awt.Graphics2D g, ViewPort viewPort) throws FMapDriverException
draw
in interface RasterDriver
g
- the graphics object on which the image must be drawnviewPort
- the current viewport
FMapDriverException
public int getRasterDataType()
getRasterDataType
in interface RasterDriver
public java.lang.Object getData(int x, int y, int band)
getData
in interface RasterDriver
x
- x coordinate of the POIy
- y coordinate of the POIband
- band index
public int[] getPixel(double wcx, double wcy)
getPixel
in interface RasterDriver
wcx
- x coordinate in map unitswcy
- y coordinate in map units
public java.lang.String getName()
Driver
getName
in interface Driver
public java.lang.String getFilePath()
getFilePath
in interface RasterDriver
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |