[Gdal-dev] Assign projection to a tif image

Frank Warmerdam warmerdam at pobox.com
Tue Mar 20 01:40:05 EDT 2007


Huajun Zhang wrote:
> 
> Hi,
> 
> Is there any method to define a projection to a image rather than 
> reproject the image with gdalwarp?

Huajun Zhang,

A projection can be attached to an image in the process of translating
it if the existing projection is wrong or if the input image lacks one
entirely.

For instance,

gdal_translate -a_srs '+proj=utm +zone=11 +datum=WGS84' in.tif out.tif

Is this the sort of operation you had in mind?

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




More information about the Gdal-dev mailing list