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, wait
getProviderName
public 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 RasterWriter
public String getDriverType()
public void setPercent(int percent)
percent
- public int getPercent()
RasterWriter
getPercent
in interface RasterWriter
public Params getParams()
getParams
in interface RasterWriter
public void setParams(Params params)
Params
- public abstract void fileWrite() throws IOException, ProcessInterruptedException
public abstract void dataWrite() throws IOException, ProcessInterruptedException
dataWrite
in interface RasterWriter
IOException
RmfSerializerException
ProcessInterruptedException
public abstract void writeClose() throws IOException
writeClose
in interface RasterWriter
IOException
public abstract void writeCancel()
writeCancel
in interface RasterWriter
public abstract void setWkt(String wkt)
setWkt
in interface RasterWriter
wkt
- public void setColorBandsInterpretation(String[] colorInterp)
setColorBandsInterpretation
in interface RasterWriter
colorInterp
- Interpretación de colorpublic void setCancellableRasterDriver(ExternalCancellable cancellable)
setCancellableRasterDriver
in interface RasterWriter
cancellable
- protected void savePrjFile(File dataFile, IProjection proj)