报错内容
在用swat进行水文分析时,点击DEM-based下的自动生成河网时出现报错Unhandled exception has occurred in a component in yourapplication. If you click Continue, the application willignore this error and attempt to continue.
"esriDataSourcesRaster.GdalDriver") Failed to copyraster datasetERROR 010240: Could not save raster dataset toC:\User\AppData Local withoutput format GRID
同时,对于error-2147467259也有可能解决
Error number: -2147467259
Error message: Error HRESULT E_FAIL has been returned from a call to a COM component.
Module name: mAGUtil
Function name: lyr_create
Procedure (error line or description): 3
Failed in getting SpatialAnalyst Setting Error HRESULT E_FAIL has been returned from a call to a COM component.
Spatial Reference: Object reference not set to an instance of an object.
Error Number: 91
Object reference not set to an instance of an object.
解决方法
在尝试网上的方法,在地理处理栏中环境选项下的并行处理设置为0后仍报错的情况下,我在google上搜寻到了几种可能出现报错的原因:
1.将系统时间调整为美国时间
具体方法:
(1)右击右下角时间,选择“调整日期/时间”
(2)将区域修改为“美国”,调整时间格式。
2.修改文件夹权限
报错也可能是由于用户没有目标文件夹的修改权限
具体方法:
找到目标文件夹、项目文件夹以及arcgis的安装文件夹,分别将文件夹右击,点击属性,若“只读”被勾选则取消勾选。
3.将输入法语言首选项设置为英文
点击输入法图标,选择语言首选项,增加英语(美国)语言