[gdal-dev] utm projection in gdal_translate

Frank Warmerdam warmerdam at pobox.com
Mon Mar 30 12:42:16 EDT 2009


Luca Fasano wrote:
> Hi,
> I want  to create a GTiff copy to a data with projection overridden to 
> *utm* using gdal_translate and its "a_srs" parameter.
> If I try to do this I obtain a wrongly located data.
> Command I use is like following:
> $ gdal_translate -of GTiff -a_srs "+proj=utm +datum=WGS84 
> +zone=<corrected utm zone starting from src coordinates> " src dst.tiff
> 
> If I try to georeference the same data with gdal_warp and the same 
> parameters I obtain a correctly located data, so I think the problem 
> doesn't come from datas neither from parameters.
> 
> What's wrong? Have I skipped some parameters?

Luca,

Are you aware that gdal_translate's -a_srs just overrides the coordinate
system definition but does not in any way adjust the geotransform?  It
is only suitable for use to override an improperly described dataset, not
to transform a dataset into a new coordinate system.

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