[gdal-dev] GeomTransform in VRT-file

Jan Hartmann j.l.h.hartmann at uva.nl
Thu Jul 4 09:12:32 PDT 2013


I'm struggling with the order of the Geotransform section in a vrt file. 
I would like to rotate an image, and computed the six parameters for the 
affine transformation. I can transform points exactly, using the 
following formula:

x2 = a.x1 + b.y1 + c
y2 = d.x1 + e.y1 + f

Can anyone tell me what the order is in the GeoTransform section of the 
VRT-file?

<GeoTransform> c a b f d e </GeoTransform>

results in an image somewhere in the neighbourhood, but mirrored and 
translated. What is the order of the parameters a-f?

Jan


More information about the gdal-dev mailing list