Package ucar.nc2.geotiff
Class GeotiffWriter
- java.lang.Object
-
- ucar.nc2.geotiff.GeotiffWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
GeoTiffWriter2
public class GeotiffWriter extends Object implements Closeable
Write GeoTIFF files. Regular data only
-
-
Field Summary
Fields Modifier and Type Field Description protected GeoTiffgeotiffprotected shortpageNumber
-
Constructor Summary
Constructors Constructor Description GeotiffWriter(String fileOut)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwriteGrid(ucar.nc2.dt.GridDataset dataset, ucar.nc2.dt.GridDatatype grid, ucar.ma2.Array data, boolean greyScale)Write GridDatatype data to the geotiff file.voidwriteGrid(ucar.nc2.ft2.coverage.GeoReferencedArray array, boolean greyScale)Write GridCoverage data to the geotiff file.
-
-
-
Field Detail
-
geotiff
protected GeoTiff geotiff
-
pageNumber
protected short pageNumber
-
-
Constructor Detail
-
GeotiffWriter
public GeotiffWriter(String fileOut)
Constructor- Parameters:
fileOut- name of output file.
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeGrid
public void writeGrid(ucar.nc2.dt.GridDataset dataset, ucar.nc2.dt.GridDatatype grid, ucar.ma2.Array data, boolean greyScale) throws IOExceptionWrite GridDatatype data to the geotiff file.- Parameters:
dataset- grid in contained in this datasetgrid- data is in this griddata- 2D array in YX ordergreyScale- if true, write greyScale image, else dataSample.- Throws:
IOException- on i/o error
-
writeGrid
public void writeGrid(ucar.nc2.ft2.coverage.GeoReferencedArray array, boolean greyScale) throws IOExceptionWrite GridCoverage data to the geotiff file.- Parameters:
array- GeoReferencedArray array in YX ordergreyScale- if true, write greyScale image, else dataSample.- Throws:
IOException- on i/o error
-
-