[Gdal-dev] Adding Projection to ECW files ?
Frank Warmerdam
fwarmerdam at GMAIL.COM
Mon Jun 20 10:37:01 PDT 2005
On 6/20/05, Bill Binko <bill at binko.net> wrote:
> I knew you were busy with the conference: this is important to me, but not
> critical. Unfortunately, I got the ECWs rather than the TIFFs, so I can't
> re-compress them. I considered using gdal_translate from ECW to ECW, but
> was worried that I might lose fidelity.
Bill,
Indeed, recompressing would be somewhat lossy.
> > 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.
> >
>
> Is that PAM file documented anywhere? I can write a script to edit XML if
> I know what I'm writing to.
It is essentially a subset of the VRT format, so the VRT docs might help. To
set the SRS, just edit it add an <SRS>+proj=utm +zone=17 +datum=WGS84</SRS>
node as a child of the <PAMDataset>.
A minimal file might look like:
abc.ecw.aux.xml:
<PAMDataset>
<SRS>+proj=utm +zone=17 +datum=WGS84</SRS>
</PAMDataset>
Any followup likely ought to stay on the gdal-dev list.
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 MapServer-users
mailing list