[Gdal-dev] Running gdal_merge.py

Sean Gillies sgillies at frii.com
Fri Sep 19 19:35:04 EDT 2003


On Friday, September 19, 2003, at 04:30  PM, Reinaldo Escada Chohfi 
wrote:

> Hello,
>
> I unziped the openev_fw_1.6.2.zip and made the required change
> in the setfw.bat file.
>
> I can run Openev and all the gdal utilities.
> However, the gdal_merge.py module code opens in the MS Notepad
> when I try to run it.  I see that the icon of the modules are 
> associated
> with the Notepad.
>
> I do not know anything about Python.  I've heard of it but never
> used it before.
>
> What program do I need to associated the module with in order to
> run it, or what is needed to do to run it on Win2k?
>
> Any suggestion is welcomed!
>
> Thanks,
>
> Reinaldo

There are other distributions of Python for Win2k, but I've only used
this one:

http://www.activestate.com/Products/ActivePython/

There's a download button in the upper left of the page.  Once you've
installed it, you can execute gdal_merge.py like

    python gdal_merge.py

Python is a scripting language (like Perl) and 'python' is the program 
that
interprets the scripts (like the program 'perl').

Python is powerful and very easy to learn, and is the language of
choice for more and more GIS programming projects.  Python's home
page

http://www.python.org

is not so compelling, but is the place to start for tutorials and
language reference.

cheers,
Sean

--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies




More information about the Gdal-dev mailing list