public class GdalWriter extends DefaultRasterWriter
at, colorInterp, dataWriter, driver, driverParams, extCancellable, fileUtil, ident, inFileName, MODE_DATAWRITE, MODE_FILEWRITE, nBands, outFileName, percent, pInfo, proj, rasterUtil, sizeWindowX, sizeWindowY, ulX, ulY| Constructor and Description |
|---|
GdalWriter(DataServerWriter dataWriter,
String outFileName,
Integer nBands,
AffineTransform at,
Integer outSizeX,
Integer outSizeY,
Integer dataType,
Params params,
IProjection proj)
Constructor para salvar datos servidos por el cliente
|
GdalWriter(DataServerWriter dataWriter,
String outFileName,
Integer nBands,
AffineTransform at,
Integer outSizeX,
Integer outSizeY,
Integer dataType,
Params params,
IProjection proj,
Boolean geo)
Constructor para salvar datos servidos por el cliente
|
GdalWriter(String fileName)
Constructor para la obtención de parámetros del driver
|
| Modifier and Type | Method and Description |
|---|---|
void |
anotherFile(String fileName) |
static void |
createCopy(GdalDriver driverDst,
String dst,
String src,
boolean bstrict,
String[] params)
Realiza una copia en el formato especificado.
|
void |
dataWrite()
Realiza la escritura de datos con los datos que le pasa el cliente.
|
void |
fileWrite()
Realiza la función de compresión a partir de un GeoRasterFile.
|
protected void |
finalize() |
String[] |
gdalParamsFromRasterParams(Params p)
Convierte los parámetros obtenidos desde el objeto params a parametros
comprensibles por la librería gdal
|
String |
getProviderName()
Gets the provider name of this
RasterWriter |
boolean |
isWrite()
Obtiene el valor a la variable write que estará a true cuando se está escribiendo
o puede escribirse la imagen de salida.
|
void |
loadParams(String ident)
Carga los parámetros de este driver.
|
static void |
register() |
void |
setDriverType(String drvType)
Asigna el tipo de driver con el que se salvará la imagen
|
void |
setParams(Params params)
Asigna los parámetros del driver modificados por el cliente.
|
void |
setWkt(String wkt)
Añade la proyección Wkt con la que salvar.
|
void |
setWrite(boolean write)
Asigna el valor a la variable write que estará a true cuando se está escribiendo
o puede escribirse la imagen de salida.
|
void |
writeARGBBand(int sizeY,
int posicionY)
Escritura para tipo de dato ARGB.
|
void |
writeByteBand(int sizeY,
int posicionY)
Escritura de datos tipo Byte.
|
void |
writeCancel()
Cancela el salvado de datos.
|
void |
writeClose()
Cierra el driver
|
void |
writeDoubleBand(int sizeY,
int posicionY)
Escritura de datos tipo Double.
|
void |
writeFloatBand(int sizeY,
int posicionY)
Escritura de datos tipo Float.
|
void |
writeIntBand(int sizeY,
int posicionY)
Escritura de datos tipo Int.
|
void |
writeShortBand(int sizeY,
int posicionY)
Escritura de datos tipo Short.
|
getDriverName, getDriverType, getIdent, getParams, getPercent, savePrjFile, setCancellableRasterDriver, setColorBandsInterpretation, setPercentpublic GdalWriter(String fileName)
fileName - public GdalWriter(DataServerWriter dataWriter, String outFileName, Integer nBands, AffineTransform at, Integer outSizeX, Integer outSizeY, Integer dataType, Params params, IProjection proj) throws GdalException, IOException
dataWriter - Objeto servidor de datos para el driver de escrituraoutFileName - Fichero de salidanBands - Número de bandasat - Transformación afinoutSizeX - Tamaño de salida en XoutSizeY - Tamaño de salida en YdataType - Tipo de datoparams - proj - GdalExceptionIOExceptionpublic GdalWriter(DataServerWriter dataWriter, String outFileName, Integer nBands, AffineTransform at, Integer outSizeX, Integer outSizeY, Integer dataType, Params params, IProjection proj, Boolean geo) throws GdalException, IOException
dataWriter - Objeto servidor de datos para el driver de escrituraoutFileName - nBands - at - outFilename - Fichero de salidaoutSizeX - Tamaño de salida en XoutSizeY - Tamaño de salida en YdataType - Tipo de datoparams - proj - geo - Flag que dice si se salva con georreferenciación o sin ellaGdalExceptionIOExceptionpublic static void register()
public void loadParams(String ident)
ident - public String getProviderName()
RasterWriterRasterWriterpublic void setWkt(String wkt)
setWkt in interface RasterWritersetWkt in class DefaultRasterWriterwkt - GdalExceptionpublic void setDriverType(String drvType)
drvType - Tipo de driverpublic void anotherFile(String fileName) throws GdalException
fileName - GdalExceptionpublic String[] gdalParamsFromRasterParams(Params p)
p - Paramspublic void writeByteBand(int sizeY,
int posicionY)
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.public void writeShortBand(int sizeY,
int posicionY)
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.public void writeIntBand(int sizeY,
int posicionY)
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.public void writeFloatBand(int sizeY,
int posicionY)
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.public void writeDoubleBand(int sizeY,
int posicionY)
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.public void writeARGBBand(int sizeY,
int posicionY)
throws ProcessInterruptedException,
OutOfMemoryError
sizeY - Alto del bloque que se escribe.posicionY - Posicióny a partir desde donde se comienza.ProcessInterruptedExceptionOutOfMemoryErrorpublic void fileWrite()
throws IOException,
ProcessInterruptedException
fileWrite in class DefaultRasterWriterIOExceptionProcessInterruptedExceptionpublic static void createCopy(GdalDriver driverDst, String dst, String src, boolean bstrict, String[] params) throws IOException, GdalException
driverDst - dst - src - bstrict - params - IOExceptionGdalExceptionpublic void dataWrite()
throws IOException,
ProcessInterruptedException,
OutOfMemoryError
dataWrite in interface RasterWriterdataWrite in class DefaultRasterWriterIOExceptionRmfSerializerExceptionProcessInterruptedExceptionOutOfMemoryErrorpublic void writeClose()
DefaultRasterWriterwriteClose in interface RasterWriterwriteClose in class DefaultRasterWriterpublic void writeCancel()
writeCancel in interface RasterWriterwriteCancel in class DefaultRasterWriterpublic boolean isWrite()
public void setWrite(boolean write)
write - Variable booleana. True si puede escribirse y false si no puedepublic void setParams(Params params)
setParams in class DefaultRasterWriterParams -