[gdal-dev] gdalwarp and tif rotation parameters

Simon Hewitt simon.hewitt at keynetix.com
Thu Jan 7 03:41:35 EST 2010


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" <warmerdam at pobox.com>
To: "Simon Hewitt" <simon.hewitt at keynetix.com>
Cc: gdal-dev at 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, 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