[gdal-dev] gdalwarp and tif rotation parameters

Frank Warmerdam warmerdam at pobox.com
Wed Jan 6 11:47:01 EST 2010


Simon Hewitt wrote:
> Hey,
> 
> I was wondering if it was possible to use gdalwarp to convert a .tif file
> and .tfw file into a plain .tif file. I'm looking to use the rotation
> parameters in the .tfw file to rotate the image itself. I've managed to do
> this with a gif and gfw file into both gif and tif formats, however it
> doesn't seem quite as straightforward using a tif file as the source.
>

Simon,

It should work similarly with a TIFF file, the only caveat is that the
.tfw file is only used if there are no internal geotiff tags for
georeferencing.  If you are creating the TIFF with GDAL you might
want to use the creation option "-co PROFILE=BASELINE" to avoid
writing geotiff tags.

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