[Gdal-dev] gdal_translate .tif to .ecw

jjknoops at netscape.net jjknoops at netscape.net
Mon Jan 18 01:54:27 EST 2010


 Hi Guido,


Try changing "%f.ecw" to"%~n1.ecw"

Jaap


 


 

 

-----Original Message-----
From: gpsguido <guido at gps.nl>
To: gdal-dev at lists.osgeo.org
Sent: Fri, Jan 15, 2010 3:33 pm
Subject: [Gdal-dev] gdal_translate .tif to .ecw



I want to convert .tif to .ecw . I use FWtools shell.
Would like to run it in batch so I have following:

for %f in (*.tif) do gdal_translate -of ECW -co "TARGET=92" -expand rgb -co
"DATUM=RD" -co "PROJ=DUTCHNEW" %f %f.ecw

with result in :

gdal_translate -of ECW -co "TARGET=92" -expand rgb -co "DATUM=RD" -co
"PROJ=DUTC
HNEW" 28a-25d-2009.tif 28a-25d-2009.tif.ecw

the problem is that the ecw is output in .tif.ecw , how can I make this work
with a output in only .ecw

I'm almost there just the last part.

guido 
-- 
View this message in context: http://n2.nabble.com/gdal-translate-tif-to-ecw-tp4399028p4399028.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100118/3c53e590/attachment.html


More information about the gdal-dev mailing list