[gdal-dev] GeomTransform in VRT-file

Even Rouault even.rouault at mines-paris.org
Thu Jul 4 14:44:15 PDT 2013


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:
> 
> 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?

That looks correct, assuming that (x1, y1) is expressed as column, row in 
pixels of the image and (x2, y2) is expressed in the output coordinate system.

> 
> Jan
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list