Frank,

That was the problem, the geotiff had internal tags that were overwriting the 
tfw. The -co PROFILE=BASELINE option fixed the issue.

Thanks for your help!

Simon

----- Original Message -----
From: "Frank Warmerdam" <warmer...@pobox.com>
To: "Simon Hewitt" <simon.hew...@keynetix.com>
Cc: gdal-dev@lists.osgeo.org
Sent: Wednesday, 6 January, 2010 16:47:01 GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: Re: [gdal-dev] gdalwarp and tif rotation parameters

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


_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to