public class GeotiffWriter
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
protected GeoTiff |
geotiff |
protected short |
pageNumber |
| Constructor and Description |
|---|
GeotiffWriter(java.lang.String fileOut)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeGrid(GeoReferencedArray array,
boolean greyScale)
Write GridCoverage data to the geotiff file.
|
void |
writeGrid(GridDataset dataset,
GridDatatype grid,
Array data,
boolean greyScale)
Write GridDatatype data to the geotiff file.
|
protected void |
writeGrid(GridDatatype grid,
Array data,
boolean greyScale,
double xStart,
double yStart,
double xInc,
double yInc,
int imageNumber)
Write Grid data to the geotiff file.
|
protected GeoTiff geotiff
protected short pageNumber
public GeotiffWriter(java.lang.String fileOut)
fileOut - name of output file.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void writeGrid(GridDataset dataset, GridDatatype grid, Array data, boolean greyScale) throws java.io.IOException
dataset - grid in contained in this datasetgrid - data is in this griddata - 2D array in YX ordergreyScale - if true, write greyScale image, else dataSample.java.io.IOException - on i/o errorprotected void writeGrid(GridDatatype grid, Array data, boolean greyScale, double xStart, double yStart, double xInc, double yInc, int imageNumber) throws java.io.IOException
grid - original griddata - 2D array in YX ordergreyScale - if true, write greyScale image, else dataSample.xStart - yStart - xInc - yInc - imageNumber - java.io.IOException - on i/o errorjava.lang.IllegalArgumentException - if above assumptions not validpublic void writeGrid(GeoReferencedArray array, boolean greyScale) throws java.io.IOException
array - GeoReferencedArray array in YX ordergreyScale - if true, write greyScale image, else dataSample.java.io.IOException - on i/o error