[gdal-dev] problems with merging ecw files
Even Rouault
even.rouault at mines-paris.org
Wed May 28 05:27:57 PDT 2014
Le mardi 27 mai 2014 08:28:41, Chrishelring a écrit :
> hi,
>
> I´m trying to merge about 40 ecw files into one, using gdal_merge.py. it
> seems to work (no error), but when I´m trying to open the file, it says,
> "Unable to read header information: Cannot open file
> c:\temp\ortofoto2007\ortofoto2007.ecw".
>
> I´m using GDAL 1.11.0 with the following command:
>
> C:\TEMP\ortofoto2007>python C:\osgeo4w\bin\gdal_merge.py -o
> c:\temp\ortofoto2007
> \ortofoto2007.ecw --optfile c:\temp\ortofoto2007\orto07.txt
>
> Any help would really be appreciated. :)
You would need to also specify "-of ECW" otherwise the .ecw produced is going
to be a GeoTIFF.
Note that gdal_merge.py can have issues with big source images, so
gdalbuildvrt + gdal_translate or gdalwarp are often better alternatives.
Even
--
Geospatial professional services
http://even.rouault.free.fr/services.html
More information about the gdal-dev
mailing list