[Gdal-dev] Correction to gdal_merge.py

Frank Warmerdam warmerdam at pobox.com
Mon Aug 23 11:06:08 EDT 2004


Mario Beauchamp wrote:
> Hi all,
> 
> I noticed that the projection information was not written to the output file.
> 
> Looking at the code, it became evident why: there is no SetProjection().
> 
> So simply adding:
> 
> t_fh.SetProjection(file_infos[0].projection)
> 
> after line 404 does the trick.
> 
> Hope this is useful to someone :)

Mario,

I have applied this.

Thanks,

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