Package noaa.coastwatch.io
Class WorldFileWriter
java.lang.Object
noaa.coastwatch.io.WorldFileWriter
The
WorldFileWriter
class writes ASCII text world
files that store image to map coordinate transformation parameters
as a set of floating point values. World files contain the
following lines:
- Line 1: x-dimension of a pixel in map units
- Line 2: rotation parameter
- Line 3: rotation parameter
- Line 4: NEGATIVE of y-dimension of a pixel in map units
- Line 5: x-coordinate of center of upper left pixel
- Line 6: y-coordinate of center of upper left pixel
- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Constructor Summary
ConstructorDescriptionWorldFileWriter
(OutputStream output, EarthImageTransform trans) Creates a new writer using the specified output stream. -
Method Summary
-
Constructor Details
-
WorldFileWriter
Creates a new writer using the specified output stream.- Parameters:
output
- the output stream for writing.trans
- the earth image transform for earth location metadata.- Throws:
IllegalArgumentException
- if the earth transform is not a map projection.IOException
-
-
Method Details
-
write
Writes a world file to the output stream.- Throws:
IOException
- if an error occurred writing to the output stream.
-