logo       

Re: Rotate an image: msg#00076

gis.gdal.devel

Subject: Re: Rotate an image

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@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise