ArcScene開發實例——加載地圖文檔
一、ArcScene介紹
ArcScene是ArcGIS中用於三維分析的,它主要用於小場景的分析,與ArcGlobe相對應。在ArcEngine中使用Scene控件開發,需要3D Analyst Extension。
二、加載地圖文檔
1、界面設計
2、代碼
string filePath =@"D:\MyProject\SceneData\Animation.sxd";
if (axSceneControl1.CheckSxFile(filePath))
{
axSceneControl1.LoadSxFile(filePath);
}
3、運行結果
三、出現的錯誤
這個程序出現了兩個錯誤,我都是第一次遇見,所以特把這個程序,完整的記錄下來。
第一個錯誤是:
解決辦法:
直接忽略
另外還有一個錯誤是:
解決辦法:
在”Debug”菜單下—-“Exceptions”—-“Managed Debugging Assistants”中勾掉”LoaderLock”
我感到疑惑的地方是,短短几行的代碼,應該是不會出錯的纔是,爲什麼是出現兩個錯誤?
四、下載地址
1、數據下載:http://download.csdn.net/detail/gongchao1212/8655565
2、源程序下載:http://download.csdn.net/detail/gongchao1212/8655567