[gdal-dev] Affine parameters in the gdal datamodel doc

Jukka Rahkonen jukka.rahkonen at maanmittauslaitos.fi
Fri Jan 9 00:33:04 PST 2015


Hi,

I am trying to understand the geotransform parameters by reading
http://www.gdal.org/gdal_datamodel.html but I am confused. In the Affine
GeoTransform section there are formulas

    Xgeo = GT(0) + Xpixel*GT(1) + Yline*GT(2)
    Ygeo = GT(3) + Xpixel*GT(4) + Yline*GT(5)

The latter formula feels odd to me and I think that it should rather be

    Xgeo = GT(0) + Xpixel*GT(1) + Yline*GT(2)
    Ygeo = GT(3) + Ypixel*GT(5) + Xline*GT(4)

That way I could understand at least how to get Y pixel when there is no
rotation involved.

-Jukka Rahkonen-



More information about the gdal-dev mailing list