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, 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