public class CompressesRasterWriter extends Object
Constructor and Description |
---|
CompressesRasterWriter(int _outputToDiskType,
double _novalue,
boolean _jump,
double[] _range,
long _pointerInFilePosition,
long[] _rowaddresses,
JGrassRegion _dataWindow,
ProgressListener monitor,
String mapName)
Preparing the environment for compressing and writing the map to disk
|
Modifier and Type | Method and Description |
---|---|
void |
compressAndWrite(ImageOutputStream theCreatedFile,
ImageOutputStream theCreatedNullFile,
RenderedImage renderedImage)
Compress and write data from a
map iterator . |
JGrassRegion |
getDataWindow() |
double |
getNovalue() |
int |
getOutputToDiskType() |
long |
getPointerInFilePosition() |
double[] |
getRange() |
long[] |
getRowaddresses() |
boolean |
isJump() |
public CompressesRasterWriter(int _outputToDiskType, double _novalue, boolean _jump, double[] _range, long _pointerInFilePosition, long[] _rowaddresses, JGrassRegion _dataWindow, ProgressListener monitor, String mapName)
_outputToDiskType
- _novalue
- _jump
- _range
- _pointerInFilePosition
- _rowaddresses
- _dataWindow
- monitor
- public void compressAndWrite(ImageOutputStream theCreatedFile, ImageOutputStream theCreatedNullFile, RenderedImage renderedImage) throws IOException
map iterator
.
This method converts every single row of the buffer of values to bytes, as needed by the deflater. Then the byterows are compressed and then written to file. Every rows first byte carries the information about compression (0 = not compressed, 1 = compressed). At the begin the place for the header is written to file, in the end the header is re-written with the right rowaddresses (at the begin we do not know how much compression will influence).
theCreatedFile
- - handler for the main map filetheCreatedNullFile
- - handler for the file of the null map (in cell_misc)renderedImage
- IOException
public JGrassRegion getDataWindow()
public boolean isJump()
public double getNovalue()
public int getOutputToDiskType()
public long getPointerInFilePosition()
public double[] getRange()
public long[] getRowaddresses()
Copyright © 1996–2019 Geotools. All rights reserved.