[Gdal-dev] Adding Projection to ECW files ?

Frank Warmerdam fwarmerdam at gmail.com
Mon Jun 20 11:47:02 EDT 2005


On 6/19/05, Bill Binko <bill at binko.net> wrote:
> 
> Hi everyone: I hope everyone enjoyed the conference.  If anyone has time
> to look at this, I'd really appreciate it.  I really would like to be busy
> making summary layers, but am stuck at this point.

Bill, 

Sorry for the delay in responding.  As always there are various
ways of approaching this.   Ideally at the point you were
generating the ECW file you would have set the coordinate system.
Something like this (assuming WGS84):

gdal_translate -of ECW -a_srs '+proj=utm +zone=17 +datum=WGS84' in.tif out.ecw

Assuming you don't want to regenerate the ECWs you should be able to push
the georeferencing into the PAM file (.aux.xml) with a small python script. 

I had intended to provide an example of this, but find that I have another bug
to pursue before I can complete this, but I had better send this email before
I reboot. 

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