Re: [gdal-dev] GeomTransform in VRT-file

2013-07-08 Thread Jan Hartmann
Reading the documentation always helps. The GeomTransform takes the upper left corner as the origin, not the lower left, as in my math handbook. And the order of the coefficients is With some twiddling of angles and signs I now can compute the affine transformation of a scan based on two cont

Re: [gdal-dev] GeomTransform in VRT-file

2013-07-04 Thread Even Rouault
Le jeudi 04 juillet 2013 18:12:32, Jan Hartmann a écrit : > 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: >

Re: [gdal-dev] GeomTransform in VRT-file

2013-07-04 Thread Dmitriy Baryshnikov
Hi Jan, Do you mean this : http://www.gdal.org/gdal_datamodel.html (Affine GeoTransform srection) or this http://www.gdal.org/gdal_tutorial.html (Getting Dataset Information section)? Also, see this: http://www.gdal.org/classVRTDataset.html#a1531325b71e290b90c8d9cc88bce6c2b Best regards,

[gdal-dev] GeomTransform in VRT-file

2013-07-04 Thread Jan Hartmann
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 wh