[Gdal-dev] Re: tif+tfw to geotif

Frank Warmerdam warmerdam at pobox.com
Mon Feb 19 10:26:25 EST 2007


Quentin S. wrote:
> Ivan,
> 
> I guess there is something wrong with the tfw file - it should be found 
> and used automatically.
> I would double-check that 1/ it has the exact same filename as the tiff 
> it relates to and 2/ its contents has properly formatted numbers (e.g. 
> with '.' and not ',').
> (By the way, I was not aware that customized SRS could be entered that 
> way... does it really work?)

Quentin,

Your analysis is correct.  The .tfw should work unless there is something
odd going on (or if the tiff is actually a broken geotiff with geotiff
info overriding the .tfw).  Also you can't mix an EPSG code and PROJ.4
syntax in a single definition.  Presumably the extra stuff after EPSG:3004
will just be ignored.

Best regards,

> ivan marchesini wrote:
>> Dear Users,
>> I'm trying to use gdal translate to convert a tif+tfw file in a geotif
>> georeferenced
>>
>> I have tried using this syntax:
>>
>> gdal_translate -a_srs "EPSG:3004 +towgs84=........." filename.tif
>> newfilename.tif
>>
>> The tif that I obtain has a correct reference system (I have checked it
>> with gdalinfo) but the coordinates are still 0,0 fro the upper left
>> corner and so on for the others .....
>>
>> where I'm wrong???
>>
>> thank you very much
>>
>> Ivan
>>
>>
>>
>>
> 
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
> 


-- 
---------------------------------------+--------------------------------------
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    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list