I recently installed OSGEO (http://download.osgeo.org/) which included python and gdal. I just realised however that there are many gdal libraries that were not included in this package for example gdal_merge. How can I install them into the osgeo environment?
Asked
Active
Viewed 5,103 times
2 Answers
1
Go to this link:
Copy everything and save the script as gdal_merge.py.
Put the gdal_merge.py to the your gdal libraries directory(osgeo directory).

lovelyvm
- 127
- 2
- 16
-
Great, so how do we access it? – colllin Jul 01 '19 at 15:07
-
@colllin click the 'Raw' button on the github page, it will take you here.. https://raw.githubusercontent.com/geobox-infrastructure/gbi-client/master/app/geobox/lib/gdal_merge.py – Sam Murphy Mar 15 '21 at 13:43
-
@colllin If I am using anaconda3, where exactly I should paste this file? – Krishnaap Feb 18 '22 at 09:58
0
On Windows, in the OSGeo4W setup program, gdal_merge.py
and the other GDAL Python scripts are included in the gdal-python package in the Libs Category.
When installed, the Python scripts are copied to the bin
subdirectory within the OSGeo4W installation directory along with batch files to launch the Python scripts. (For example, gdal_merge.bat
).
Once installed, the GDAL Python scripts can be executed from the OSGeo4W Shell which is available from the Windows Start Menu.

DavidRR
- 18,291
- 25
- 109
- 191