This class is responsible for parsing a world file in order to build an
affine transform using the parameters provided in the file itself.
The parameters found in the file should be as follows:
- size of pixel in x direction
- rotation term for row
- rotation term for column
- size of pixel in y direction
- x coordinate of centre of upper left pixel in map units
- y coordinate of centre of upper left pixel in map units
Note that the last two coordinates refer to the centre of the pixel!
It is worth to point out that various data sources describe the parameters in
the world file as the mapping from the pixel centres' to the associated world
coords. Here we directly build the needed grid to world transform and we DO
NOT add any half a pixel translation given that, as stated above, the values
we receive should map to the centre of the pixel.
author: Simone Giannecchini since: 2.3 |