[gdal-dev] Error trying to merge 3 files for a multi-band ( Windows 7 PRO,

Even Rouault even.rouault at mines-paris.org
Fri Mar 26 17:01:39 EDT 2010


Eduardo,

Yes, this is a known regression.  See http://trac.osgeo.org/gdal/ticket/3354

You can workaround this by specifying the -q or -v flags.

Or just download 
http://trac.osgeo.org/gdal/browser/branches/1.7/gdal/swig/python/scripts/gdal_merge.py?format=raw 
and use it as the replacement for the one from FWTools.

Best regards,

Even

Le Friday 26 March 2010 21:45:26 Eduardo Kanegae, vous avez écrit :
> Hi folks,
>
> I'm trying to merge 3 separated tiff files to a single one ( make a
> RGB composition with 3 bands) using the command:
>
> $ gdal_merge -of GTiff -o target-RGB432.tif -separate BAND4.tif
> BAND3.tif BAND2.tif
>
> I'm running Windows 7 Pro, FWTools 2.4.7 with GDAL 1.7.0b2
>
> and I get the following error:
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * * * * * * * *
> Traceback (most recent call last):
>   File "C:\PROGRA~2\FWTOOL~1.7\bin\gdal_merge.py", line 463, in ?
>     sys.exit(main())
>   File "C:\PROGRA~2\FWTOOL~1.7\bin\gdal_merge.py", line 433, in main
>     if quiet == 0 and verbose == 0:
> UnboundLocalError: local variable 'quiet' referenced before assignment
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * * * * * * * * * * * * * *
>
> Any idea?




More information about the gdal-dev mailing list