COMException: The data necessary to complete this operation is not yet available.

问题描述:

最近在公司AE项目中遇到了下面的问题:

COMException: The data necessary to complete this operation is not yet available.
ErrorCode: -2147483638 (Hex:8000000a)
StackTrace: ESRI.ArcGIS.Carto.IMap.get_MapScale() 

问题原因:

因为框架已经在很多项目使用,确保不是程序代码的问题。在网上找了很久,发现ESRI官网论坛有人遇到过相同的问题,链接地址:

http://forums.esri.com/Thread.asp?c=159&f=1707&t=258229

发生错误的原因是:地图单位是unknown。

解决方法:

参照上面链接内容,将地图单位设置为meters。问题解决。

posted @ 2014-05-19 10:22  kevin_cnblogs  阅读(652)  评论(0编辑  收藏  举报