Class WorldFile

Class Documentation

class WorldFile

class to hold world file data A world file is a six line plain text sidecar file used by geographic information systems (GIS) to georeference raster map images. The file specification was introduced by Esri This version has an extension to also read and store an UTM z value and a map offset.

Public Functions

inline WorldFile()
inline bool write_jgw(const std::string &filename)

origin of the map default upper left pixel (if exits)

writes a world file with six lines

Parameters:

filename

Returns:

true on error otherwise false

inline bool read_jgw(const std::string &filename)

reads a world file with six lines

Parameters:

filename

Returns:

true on error otherwise false

Public Members

double resolution_x
double rotation_y

pixel size in the x-direction in map units/pixel

double rotation_x

rotation about y-axis

double resolution_y

rotation about x-axis

double coordinate_x

pixel size in the y-direction in map units, almost always negative

double coordinate_y

x-coordinate of the center of the upper left pixel

double coordinate_z

y-coordinate of the center of the upper left pixel

double origin_x

z-coordinate of the center of the upper left pixel (if exits)

double origin_y

origin of the map default upper left pixel (if exits)