随笔分类 -  ArcEngine

C# + ArcEngine 常用方法(不定时更新)
摘要:1、Arcengine调用GP服务,抛出异常方法 object sev = null; try { Application.DoEvents(); gp.Execute(gpBuildPyramidsandStatistics, null); Application.DoEvents(); Cons 阅读全文
posted @ 2016-07-30 11:19 jin_qi_er 阅读(1082) 评论(0) 推荐(0)
Arcengine 基本操作(待更新)
摘要:/// /// 删除fieldName属性值为1的弧段 /// /// /// public void DelectPolyline(string fieldName, int t) { ... 阅读全文
posted @ 2014-12-09 16:12 jin_qi_er 阅读(620) 评论(0) 推荐(0)
arcgis engine10.1和arcObjects的一些问题
摘要:1、arcengine10.1只支持vs20102、10.1以后没有engine runtimes,改成engine了,以前的engine可以理解为Arcobject,就是我们可以只装AO 阅读全文
posted @ 2013-11-29 20:25 jin_qi_er 阅读(245) 评论(0) 推荐(0)
AE 创建shp图层
摘要:C#+AE中创建点状Shp文件今天将点写入一个新的SHP文件中,自己先做了一个简单试验,一切正常。代码如下private void CreateShpFromPoint() { ISpatialReference pSpatialReference = this.axMapData.ActiveView.FocusMap.SpatialReference; string strShapeFolder="C:/"; string strShapeFile = "test.shp"; string shapeFileFullName = strShapeFo 阅读全文
posted @ 2013-05-28 19:11 jin_qi_er 阅读(1010) 评论(0) 推荐(0)
ArcEngine开发之自定义工具
摘要:1.在项目中添加基于Base Command等的类,可改变命名空间名称。2.引用:命名空间.类名称;实例:using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;using System.Resources;using System.Reflection;using System.Drawing;using ESRI.ArcGIS.ADF.BaseClasses;using ESRI.ArcGIS.ADF.CATIDs;using ESRI.ArcG 阅读全文
posted @ 2013-01-22 12:20 jin_qi_er 阅读(735) 评论(0) 推荐(0)
在MapControl控件中右击事件添加系统自带的命令
摘要:private IToolbarMenu m_menuMap = null;//全局变量private IMapControl3 m_mapControl = null;主窗体Load事件中加入: m_mapControl = (IMapControl3)this.axMapControl1.Object; m_menuMap = new ToolbarMenuClass();//ICommand命令m_menuMap.AddItem( new ControlsMapFullExtentCommand(), -1, 0, false, esriCommandStyles.... 阅读全文
posted @ 2012-05-30 23:50 jin_qi_er 阅读(715) 评论(0) 推荐(0)
arcengine 画多边形
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IRgbColor pRgbColor; IActiveView pActiveView; IRubberBand pRubberBand; IElement pElement; IGraphicsContainer pGraphicsContainer;//起到容... 阅读全文
posted @ 2012-05-30 08:46 jin_qi_er 阅读(977) 评论(0) 推荐(0)
arcengine 画线
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e){ ILineElement pLineElement;IActiveView pActiveView;IRgbColor pRgbColor; IRubberBand pRubberBand; ISimpleLineSymbol pSimpleLineSymbol; IPolyline p... 阅读全文
posted @ 2012-05-30 08:19 jin_qi_er 阅读(559) 评论(0) 推荐(0)
Arcengine画点的代码
摘要:private void axMapControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent e) {IElement pElement; IMarkerElement pMarkerElement; ISimpleMarkerSymbol pSimpleMarkerSymbol;IRgbColor pRgbColor; pSimpleMa... 阅读全文
posted @ 2012-05-30 08:17 jin_qi_er 阅读(308) 评论(0) 推荐(0)