public class GeotiffWriter
extends java.lang.Object
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(GridDataset dataset,
GridDatatype grid,
Array data,
boolean greyScale)
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 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 errorpublic void close() throws java.io.IOException
java.io.IOException