[Gdal-dev] Rotate an image

Frank Warmerdam warmerdam at pobox.com
Mon Sep 15 17:22:08 EDT 2003


Geographic Wizard wrote:
> Hello, all.
>  
> What would be the best way to rotate an image with GDAL / Warp?
>  
> Do GeoTransform[ 2 ] and GeoTransform[ 4 ] have any effect on RasterIO ? 
> and are they related to rotation of an image?

Steve,

The geotransform[2] and [4] are honoured by the georeferencing based warper
so you could construct an input image with a world file with appropriate
rotational coefficients, and then use gdalwarp to "undo" the rotation.

The geotransform does *not* have any effect on raw rasterio calls.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list