当我在IDE中使用arcpy.ListRasters
(测试了Pyscripter和IDLE)时,我的进程停止了。在IDLE中,Python引擎只需重新启动,而在Pyscripter中,会抛出一个应用程序错误:
EOFError: [Errno 10054] An existing connection was forcibly closed by the remote host
示例代码:
import arcpy
arcpy.env.workspace = r'C:\scratch'
rasterList = arcpy.ListRasters()
注意事项:
因此,使用IDE和从普通文件夹中列出raster的组合似乎是问题所在。 我在Windows7 64位上使用ArcGIS 10.5.1。在
目前没有回答
相关问题 更多 >
编程相关推荐