Python
跟
ArcGIS
断了联系……Model
的
py
脚本无法运行
Python
跟
ArcGIS
断了联系……Model
的
py
脚本无法
运行
不知道怎么回事,
Python
跟
ArcGIS
断了联系,
Model
保
存的
py
脚本无法运行。
我重新安装
numpy-1.0.3.win32-py2.5.exe
无效
首先是提示
arcgisscripting
无效
任意
Model
保存的脚本都有这个
import arcgisscripting
在
Python ide
中运行
>>> sys.path
没有
'C:\\Program Files\\ArcGIS\\bin'
这个路径
,
不过这似乎没有关系,只需要在
model
保存的脚本中
在
import arcgisscripting
之前先把这个路径引入
sys.path.append('C:\\Program Files\\ArcGIS\\Bin')
但是运行脚本时
会提示:
gp.Copy
(……)
,
gp.Clip
(……)
缺少这些对象,这都是
ArcGIS
自带的工具,
例如下面的这几句命令会提示缺少
Copy
对象
# Process: Copy...gp.toolbox = "D:/
交通气象监测产品
/JTQXJC/JiaoTongQiXiangJC.tbx";gp.Copy(Micaps1_Clip