[Gdal-dev] GDAL affine transform Non-North-Up
Klokan Petr Přidal
klokan at klokan.cz
Fri Dec 19 03:02:50 EST 2008
> If I know the co-ordinates for all 4 corners of a non-north-up image, how
> can I calculate the 6 GDAL affine transform parameters?
There is a script gcps2wld.py in GDAL:
You should assign the corners (ground control points) to a raster by:
gdal_translate -of vrt -gcp 0 0 19.3 50.5 ... input.tif temp.vrt
will return a world file.
Direct calculation in pure python is possible for example with:
with documetation and a Java version at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev