摘要: private void axMapControl1_OnAfterScreenDraw(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnAfterScreenDrawEvent e) { IActiveView pActiveView = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap; IDisplayTransformation pDisplay = pActiveView.ScreenDisplay.DisplayTransformation; pDisplay 阅读全文
posted @ 2012-07-20 13:57 忆如梨花 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 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;using System.Data.OleDb;namespace 将数据从excel中导入到access中{ public partial class Form1 : Form { public Form1() { InitializeCompo 阅读全文
posted @ 2012-07-20 13:57 忆如梨花 阅读(418) 评论(1) 推荐(0) 编辑
摘要: 主要部分代码,参数来源略 Geoprocessor gp = new Geoprocessor(); gp.OverwriteOutput = true; ESRI.ArcGIS.AnalysisTools.Buffer pbuffer = new ESRI.ArcGIS.AnalysisTools.Buffer(); pbuffer.in_features = pFeLayer; pbuffer.buffer_distance_or_field = Convert.ToString((this.textBox1.Text)) + " " + (string)this.co 阅读全文
posted @ 2012-07-20 13:57 忆如梨花 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 以下为影像图配准程序。其中pointTo1-4的坐标值是其中的一幅CAD数据通过ArcMap工具手工配准后生成的地理坐标得到的。private void geoReferencing() { /*配准主要使用IGeoReference这个接口来完成工作。 还有使用ActiveView来进行坐标转换,将MapControl中鼠标的点击位置转换为 地图和影像图上的坐标。 下面介绍IGeoReference接口 首先RasterLayer实现了这个接口 CanGeoRef 监测该图层是否可以做配准 PointsTransform 将鼠标的位置转换为栅格文件上的相对坐标。 Rectify 将纠正的结果 阅读全文
posted @ 2012-07-20 13:56 忆如梨花 阅读(709) 评论(0) 推荐(0) 编辑
摘要: IFeatureLayer pFeLayer = axMapControl1.get_Layer(0) as IFeatureLayer; IDataLayer idata = pFeLayer as IDataLayer; IDatasetName idataname = idata.DataSourceName as IDatasetName; string path = idataname.WorkspaceName.PathName ; axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, nul. 阅读全文
posted @ 2012-07-20 13:56 忆如梨花 阅读(268) 评论(0) 推荐(0) 编辑