Package ucar.nc2.geotiff
Class GeoTiff
- java.lang.Object
-
- ucar.nc2.geotiff.GeoTiff
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class GeoTiff extends Object implements Closeable
Low level read/write geotiff files.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Close the Geotiff file.void
compare(GeoTiff other, Formatter f)
Deprecated.do not usevoid
initTags()
void
read()
Read the geotiff file, using the filename passed in the constructor.String
showInfo()
Write the geotiff Tag information to a String.void
showInfo(PrintWriter out)
Write the geotiff Tag information to out.
-
-
-
Constructor Detail
-
GeoTiff
public GeoTiff(String filename)
Constructor. Does not open or create the file.- Parameters:
filename
- pathname of file
-
-
Method Detail
-
close
public void close() throws IOException
Close the Geotiff file.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- on io error
-
initTags
public void initTags()
-
read
public void read() throws IOException
Read the geotiff file, using the filename passed in the constructor.- Throws:
IOException
- on read error
-
showInfo
public void showInfo(PrintWriter out)
Write the geotiff Tag information to out.
-
showInfo
public String showInfo()
Write the geotiff Tag information to a String.
-
compare
@Deprecated public void compare(GeoTiff other, Formatter f)
Deprecated.do not use
-
-