Re: [gdal-dev] utm projection in gdal_translate

2009-03-30 Thread Frank Warmerdam

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= " 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


[gdal-dev] utm projection in gdal_translate

2009-03-30 Thread Luca Fasano

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= " 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?
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev