public class GdalDataset extends 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.
|
String |
getColorInterpretationName(int colorInterp)
Obtiene la cadena que representa el tipo de banda de color.
|
Dataset |
getDataset() |
static GdalDriver |
getDriverByName(String name)
Obtiene un driver a trav?
|
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
|
String[] |
getMetadata()
Obtiene un array de Strings con los metadatos
|
String[] |
getMetadata(String domain)
Obtiene un array de Strings con los metadatos
|
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(String filename,
int access)
Abre el fichero de imagen.
|
void |
setGeoTransform(GeoTransform gt)
A?
|
void |
setProjection(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(String filename, int access) throws GdalException, IOException
filename
- Nombre del fichero.access
- Apertura en solo lectura o escritura.GdalException
IOException
public String[] getMetadata() throws GdalException
GdalException
public String[] getMetadata(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 String getDriverShortName() throws GdalException
GdalException
public void setGeoTransform(GeoTransform gt) throws GdalException
GdalException
public String getProjectionRef() throws GdalException
GdalException
public void close() throws GdalException
GdalException
public static GdalDriver getDriverByName(String name) throws GdalException
name
- Nombre del driverGdalException
public int getGCPCount() throws GdalException
GdalException
public Dataset getDataset()
public void setProjection(String proj) throws GdalException
proj
- proyecci?nGdalException
public String getColorInterpretationName(int colorInterp) throws GdalException
GdalException