public class GdalDataset
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
GA_ReadOnly |
static int |
GA_Update |
static int |
GDT_Byte |
static int |
GDT_CFloat32 |
static int |
GDT_CFloat64 |
static int |
GDT_CInt16 |
static int |
GDT_CInt32 |
static int |
GDT_Float32 |
static int |
GDT_Float64 |
static int |
GDT_Int16 |
static int |
GDT_Int32 |
static int |
GDT_TypeCount |
static int |
GDT_UInt16 |
static int |
GDT_UInt32 |
static int |
GDT_Unknown |
Constructor and Description |
---|
GdalDataset()
Constructor generico
|
GdalDataset(Dataset dataset) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Cierra el fichero de imagen.
|
java.lang.String |
getColorInterpretationName(int colorInterp)
Obtiene la cadena que representa el tipo de banda de color.
|
Dataset |
getDataset() |
static GdalDriver |
getDriverByName(java.lang.String name)
Obtiene un driver a trav?
|
java.lang.String |
getDriverShortName()
Obtiene el Nombre corto asociado al driver del dataset
|
int |
getGCPCount()
Obtiene el numero de bandas de la imagen
|
GeoTransform |
getGeoTransform()
Obtiene el vector geoTransform de la imagen que contiene los valores Origen y pixelSize
|
java.lang.String[] |
getMetadata()
Obtiene un array de Strings con los metadatos
|
java.lang.String[] |
getMetadata(java.lang.String domain)
Obtiene un array de Strings con los metadatos
|
java.lang.String |
getProjectionRef()
Obtiene el sistema de coordenadas de referencia de la imagen.
|
GdalRasterBand |
getRasterBand(int hBand)
Obtiene el n?
|
int |
getRasterCount()
Obtiene el n?
|
int |
getRasterXSize()
Obtiene la dimensi?
|
int |
getRasterYSize()
Obtiene la dimensi?
|
void |
open(java.lang.String filename,
int access)
Abre el fichero de imagen.
|
void |
setGeoTransform(GeoTransform gt)
A?
|
void |
setProjection(java.lang.String proj)
Asigna la proyecci?
|
public static int GA_ReadOnly
public static int GA_Update
public static int GDT_Unknown
public static int GDT_Byte
public static int GDT_UInt16
public static int GDT_Int16
public static int GDT_UInt32
public static int GDT_Int32
public static int GDT_Float32
public static int GDT_Float64
public static int GDT_CInt16
public static int GDT_CInt32
public static int GDT_CFloat32
public static int GDT_CFloat64
public static int GDT_TypeCount
public GdalDataset()
public GdalDataset(Dataset dataset)
public void open(java.lang.String filename, int access) throws GdalException, java.io.IOException
filename
- Nombre del fichero.access
- Apertura en solo lectura o escritura.GdalException
java.io.IOException
public java.lang.String[] getMetadata() throws GdalException
GdalException
public java.lang.String[] getMetadata(java.lang.String domain) throws GdalException
GdalException
public GdalRasterBand getRasterBand(int hBand) throws GdalException
hBand
- Entero que corresponde al n?mero de banda que se quiere recuperarGdalException
public int getRasterXSize()
public int getRasterYSize()
public int getRasterCount()
public GeoTransform getGeoTransform() throws GdalException
GdalException
public java.lang.String getDriverShortName() throws GdalException
GdalException
public void setGeoTransform(GeoTransform gt) throws GdalException
GdalException
public java.lang.String getProjectionRef() throws GdalException
GdalException
public void close() throws GdalException
GdalException
public static GdalDriver getDriverByName(java.lang.String name) throws GdalException
name
- Nombre del driverGdalException
public int getGCPCount() throws GdalException
GdalException
public Dataset getDataset()
public void setProjection(java.lang.String proj) throws GdalException
proj
- proyecci?nGdalException
public java.lang.String getColorInterpretationName(int colorInterp) throws GdalException
GdalException