public class GeotiffWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected GeoTiff |
geotiff |
protected short |
pageNumber |
Constructor and Description |
---|
GeotiffWriter(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(String fileOut)
fileOut
- name of output file.public void writeGrid(GridDataset dataset, GridDatatype grid, Array data, boolean greyScale) throws 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.IOException
- on i/o errorpublic void close() throws IOException
IOException
Copyright © 1999–2019 UCAR/Unidata. All rights reserved.