public abstract class DefaultRasterWriter extends Object implements RasterWriter
| Modifier and Type | Field and Description |
|---|---|
protected AffineTransform |
at |
protected DataStoreColorInterpretation |
colorInterp |
protected int |
dataType |
protected DataServerWriter |
dataWriter |
protected String |
driver |
protected Params |
driverParams |
protected ExternalCancellable |
extCancellable |
protected FileUtils |
fileUtil |
protected String |
ident |
protected String |
inFileName |
static int |
MODE_DATAWRITE |
static int |
MODE_FILEWRITE |
protected int |
nBands |
protected String |
outFileName |
protected int |
percent |
protected DefaultProviderServices |
pInfo |
protected IProjection |
proj |
protected RasterUtils |
rasterUtil |
protected int |
sizeWindowX |
protected int |
sizeWindowY |
protected int |
ulX |
protected int |
ulY |
| Constructor and Description |
|---|
DefaultRasterWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dataWrite()
Realiza la función de compresión a partir de los datos pasados por el
cliente.
|
abstract void |
fileWrite()
Realiza la función de compresión a partir de un GeoRasterFile.
|
String |
getDriverName()
Obtiene el nombre del driver.
|
String |
getDriverType() |
String |
getIdent()
Devuelve el identificador del driver
|
Params |
getParams()
Obtiene los parámetros del driver.
|
int |
getPercent()
Porcentaje de escritura completado.
|
protected void |
savePrjFile(File dataFile,
IProjection proj) |
void |
setCancellableRasterDriver(ExternalCancellable cancellable)
Assigns the object to be cancelled
|
void |
setColorBandsInterpretation(String[] colorInterp)
Asigna la interpretación de color para el fichero de salida.
|
void |
setParams(Params params)
Asigna los parámetros del driver modificados por el cliente.
|
void |
setPercent(int percent)
Asigna el porcentaje de incremento.
|
abstract void |
setWkt(String wkt)
Añade la proyección Wkt con la que salvar.
|
abstract void |
writeCancel()
Cancela el grabado de datos
|
abstract void |
writeClose()
Cierra el driver
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProviderNamepublic static final int MODE_FILEWRITE
public static final int MODE_DATAWRITE
protected String outFileName
protected String inFileName
protected int sizeWindowX
protected int sizeWindowY
protected int ulX
protected int ulY
protected DataServerWriter dataWriter
protected int nBands
protected String ident
protected String driver
protected Params driverParams
protected AffineTransform at
protected int percent
protected int dataType
protected IProjection proj
protected DataStoreColorInterpretation colorInterp
protected ExternalCancellable extCancellable
protected FileUtils fileUtil
protected RasterUtils rasterUtil
protected DefaultProviderServices pInfo
public String getIdent()
public String getDriverName()
getDriverName in interface RasterWriterpublic String getDriverType()
public void setPercent(int percent)
percent - public int getPercent()
RasterWritergetPercent in interface RasterWriterpublic Params getParams()
getParams in interface RasterWriterpublic void setParams(Params params)
Params - public abstract void fileWrite()
throws IOException,
ProcessInterruptedException
public abstract void dataWrite()
throws IOException,
ProcessInterruptedException
dataWrite in interface RasterWriterIOExceptionRmfSerializerExceptionProcessInterruptedExceptionpublic abstract void writeClose()
throws IOException
writeClose in interface RasterWriterIOExceptionpublic abstract void writeCancel()
writeCancel in interface RasterWriterpublic abstract void setWkt(String wkt)
setWkt in interface RasterWriterwkt - public void setColorBandsInterpretation(String[] colorInterp)
setColorBandsInterpretation in interface RasterWritercolorInterp - Interpretación de colorpublic void setCancellableRasterDriver(ExternalCancellable cancellable)
setCancellableRasterDriver in interface RasterWritercancellable - protected void savePrjFile(File dataFile, IProjection proj)