草r。在gdal崩溃:程序条目点sqlite3\u rtree\u几何体回调无法位于动态链接库空间中

2024-06-28 19:26:08 发布

您现在位置:Python中文网/ 问答频道 /正文

我编写了以下python脚本尝试将光栅文件导入GRASS:

import os
os.chdir(r'C:\Users\Desktop')
import sys
sys.path.append(os.path.join(os.environ['GISBASE'], 'etc', 'python'))
import grass.script as g
import grass.script.setup as gsetup
gisbase = os.environ['GISBASE']
gisdb = 'C:\Users\Documents\grassdata'
location = 'newLocation'
mapset = 'mTW'
gsetup.init(gisbase, gisdb, location, mapset)

g.run_command('r.in.gdal', input = 'middle TW', output = 'middl_TW')

但我有个错误:

^{pr2}$

然后出现了一条信息:

enter image description here

这意味着在动态链接库C:\OSGeo4W\bin中找不到过程入口点sqlite3\u rtree_geometry_回调\spatialite.dll在

然后这个出现了:

enter image description here

似乎r。输入gdal正如我所说的那个模块坠毁了。在

如果我直接使用GRASS GUI,在我选择一个映射集后,会出现这个框消息,程序崩溃:

enter image description here

如何解决这个问题?我使用的是win8.1下的grass6.4.3和python2.7.6


Tags: pathimportosassysenvironscriptlocation