文档详情

ArcGIS Engine 开发 2课件.ppt

发布:2017-08-09约2.53万字共145页下载文档
文本预览下载声明
;组件对象模型;.NET平台概述;ArcObjects简介;ArcGIS Engine简介;ArcGIS Engine简介-体系结构;ArcGIS 控件介绍;;ArcGIS Engine 中的控件;制图控件介绍;;3D控件介绍;;框架控件介绍;;;基于.NET的ArcGIS Engine的开发;;;;;;;桌面GIS 应用程序框架的建立;;;;;;;;;ArcGIS Engine介绍-类库;;;;;;;;;;;;;;;;;地理信息系统基本功能的设计开发;;地图文档加载、shp文件的加载;;;; private void button1_Click(object sender, EventArgs e) { loadMapDocument(); } //加载地图文档 private void loadMapDocument() { System.Windows.Forms.OpenFileDialog OpenFileDialog; OpenFileDialog = new OpenFileDialog(); OpenFileDialog.Title = 打开地图文档; OpenFileDialog.Filter = map documents(*.mxd)|*.mxd; OpenFileDialog.ShowDialog(); string filepath = OpenFileDialog.FileName; ;if (axMapControl1.CheckMxFile(filepath)) { axMapControl1.MousePointer = esriControlsMousePointer.esriPointerHourglass; axMapControl1.LoadMxFile(filepath, 0, Type.Missing); axMapControl1.MousePointer = esriControlsMousePointer.esriPointerDefault; } else { MessageBox.Show(filepath + 不是有效的地图文档); } } ; private void button2_Click(object sender, EventArgs e) { addShapeFile(); } //加载SHP文件 private void addShapeFile() { System.Windows.Forms.OpenFileDialog openFileDialog; openFileDialog = new OpenFileDialog(); openFileDialog.Title = 打开图层文件; openFileDialog.Filter = map documents(*.shp)|*.shp; openFileDialog.ShowDialog(); ; FileInfo fileInfo = new FileInfo(openFileDialog.FileName); string path = openFileDialog.FileName.Substring(0, openFileDialog.FileName.Length - fileInfo.Name.Length); try { axMapControl1.AddShapeFile(path, fileInfo.Name); } catch (Exception
显示全部
相似文档