[Gdal-dev] gdal_translate .tif to .ecw

gpsguido guido at gps.nl
Fri Jan 15 09:33:33 EST 2010


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.


More information about the gdal-dev mailing list