gdal_merge.py usage

Frank Warmerdam warmerdam at POBOX.COM
Thu Oct 6 09:05:02 PDT 2005


On 10/6/05, Travis Kirstine GIS Tech <tkirstine at jdbarnes.com> wrote:
> I've been trying without success to use gdal_merge.py.  I've download the
> latest version of FW Tools and tried to use gdal_merge with the following
> command
>
> >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test
> orth176170475152002fbs.tif orth176170475202002fbs.tif
> orth176170475252002fbs.tif
>
> With this I received the message to "Select Program to open gdal_merge.py"
> I then checked any threads that could help
> http://list.maptools.org/pipermail/gdal_dev/2003-August/000985.html
>
> and tried to set my environmental variables to
>
> >set OPENEV_HOME="C:\Program Files\FWTools0.9.8"
> >set path=%OPENEV_HOME%\bin;%OPENEV_HOME%\python\Lib;\%PATH%
> >set PYTHONHOME=%OPENEV_HOME%\python
> >set
> PYTHONPATH=%OPENEV_HOME%\pymod;%PYTHONHOME%\include\Numeric;%PYTHONHOME%\Lib
> >"C:\Program Files\FWTools0.9.8\pymod\gdal_merge.py" tiff_merge_test
> orth176170475152002fbs.tif orth176170475202002fbs.tif
> orth176170475252002fbs.tif
>
> This didn't seem to do anything and I still received the message Select
> Program message, I then browsed to
> C:\Program Files\FWTools0.9.8\python\python.exe
> and received the error message "application has failed, python23.dll not
> found"

Travis,

This is really a MapServer question and would be better asked on the
FWTools or gdal-dev lists.

I would strongly encourage you to execute the gdal_merge.py script
from the "FWTools Shell", or to call the same environment initialization
bat file it uses (the setfw.bat file).

Also, in the BIN directory of FWTools there is a gdal_merge.bat.  If you
use that, it will take care of calling the right python executable.

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