基于.NET的ArcGis Engine开发:
?一、环境布置:
?ArcGis10.2+Vs2012+Engine10.2
?
?二、一个简单DEMO:
?运行结果:
?
?
?程序源码:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace engineTest2 { public partial class Form1 : Form { public Form1() { ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop); InitializeComponent(); } private void axToolbarControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IToolbarControlEvents_OnMouseDownEvent e) { } private void Form1_Load(object sender, EventArgs e) { String path = @"E:\ArcEngine\第十章\lesson1\data\World\World.mxd"; axMapControl1.LoadMxFile(path); axMapControl1.Extent = axMapControl1.FullExtent; } } }
?
原文:http://cb123456.iteye.com/blog/2214564