Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我最近安装了 OSGEO ( http://download.osgeo.org/ ),其中包括 python 和 gdal。然而,我刚刚意识到这个包中没有包含许多 gdal 库,例如 gdal_merge。如何将它们安装到 osgeo 环境中?
转到此链接:
gdal_merge.py
复制所有内容并将脚本保存为 gdal_merge.py。
将 gdal_merge.py 放入您的 gdal 库目录(osgeo 目录)。
在 Windows 上,在OSGeo4W安装程序中,gdal_merge.py其他 GDAL Python 脚本包含在Libs类别的gdal-python包中。
安装后,Python 脚本将bin与批处理文件一起复制到 OSGeo4W 安装目录中的子目录,以启动 Python 脚本。(例如,gdal_merge.bat)。
bin
gdal_merge.bat
安装后,可以从 Windows 开始菜单中的OSGeo4W Shell执行 GDAL Python 脚本。