随笔分类 - arcengine
摘要:1,进入ArcGISDesktop安装目录,如:C:\ProgramFiles\ArcGIS\Desktop10.0 2,进入Bin文件夹,备份ArcMap.exe.config文件,以备恢复。3,修改ArcMap.exe.config文件(可用记事本等文本编辑器打开) 将原值: 修改为 保存文...
阅读全文
摘要:ISelection selection = m_hookHelper.FocusMap.FeatureSelection; IEnumFeatureSetup iEnumFeatureSetup = selection as IEnumFeatureSetup; iEnumFeatureSetup...
阅读全文
摘要:http://www.360doc.com/content/13/0220/09/3046928_266688511.shtml
阅读全文
摘要:圆形在shape和feature class(mdb/gdb)中的存储方式不一样,feature class中是通过圆心和半径计算出来的曲线,而shape文件中是通过多节点拟合出来的,所以在投影后变形会有不同。其他的多边形不会有这个问题。element与feature class的存储方式类似,圆形也是通过圆心与半径的方式存储的。如果希望以节点的方式拟合,只能将其转出成shape格式的数据
阅读全文
摘要:ArcEngine中画出的Element遮挡地图的标注,解决: IGraphicsLayer pGraLayer = this.axMapControl1.ActiveView.FocusMap.BasicGraphicsLayer; IBarrierProperties pBarrierProp = pGraLayer as IBarrierProperties; pBarrierProp.Weight = (int)esriBasicOverposterWeight.esriMediumWeight;
阅读全文
摘要:首先有两个接口可以实现复制功能:(1)IFeatureDataConverter (2)IGeoDBDataTransferIFeatureDataConverter接口只能复制简单的要素类,不支持GDB中包含的 Geometric Networks、 Topologies、 Network Datasets、Relationship Classes、 Network feature classes、 Annotation or Dimension feature class、 Feature classes with class extensions、 Subtypes, domains a
阅读全文
摘要:http://fangrn.iteye.com/blog/702918
阅读全文
摘要:IGraphicsContainer container = axPageLayoutControl1.PageLayout as IGraphicsContainer; IMap map = axPageLayoutControl1.ActiveView.FocusMap; container.Reset(); IElement element = container.Next(); while (element != null) { if (element is IMapSurroundFrame) { IMapSurroundFrame mapSurroundFrame = eleme.
阅读全文
摘要:当使用IMap的selectbyshape时,所有图层符合条件的查找出,当不选择某图层时,设置IFeatureLayer的Selectable为false,这样这个图层就不会被搜索,就查询不到!
阅读全文
摘要:在使用ITopologicalOperator求交集等操作的时候,有时候会出现“HRESULT:0x80040215”的问题,原因是空间坐标参考不一致,将其设置为一致便可解决问题。
阅读全文
摘要:C:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe path+SelectCommands.dll /tlb:SelectCommands.tlb /codebase(红色部分为自定义插件的名字)
阅读全文
摘要:测量任意两个Geometry的距离,可以用IProximityOperator这个接口,但是测量出来的是经纬度
阅读全文
摘要:遍历图层组时,将图层组layer转换成ICompositeLayer,然后遍历里面的图层
阅读全文
摘要:刷新图层:pMap.PartialRefresh(esriViewGeography, pLayer, null); 刷新所有图层:pMap.PartialRefresh(esriViewGeography, null, null); 刷新所选择的对象:pMap.PartialRefresh(esriViewGeoSelection, null, null); 刷新标注:pMap.PartialRefresh(esriViewGraphics, null, null); 刷新图元pLayout.PartialRefresh(esriViewGraphics, pElement, null);
阅读全文
摘要:private void axMapControl1_OnAfterScreenDraw(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnAfterScreenDrawEvent e) { IActiveView pActiveView = (IActiveView)axPageLayoutControl1.ActiveView.FocusMap; IDisplayTransformation pDisplay = pActiveView.ScreenDisplay.DisplayTransformation; pDisplay
阅读全文
摘要:主要部分代码,参数来源略 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
阅读全文
摘要:以下为影像图配准程序。其中pointTo1-4的坐标值是其中的一幅CAD数据通过ArcMap工具手工配准后生成的地理坐标得到的。private void geoReferencing() { /*配准主要使用IGeoReference这个接口来完成工作。 还有使用ActiveView来进行坐标转换,将MapControl中鼠标的点击位置转换为 地图和影像图上的坐标。 下面介绍IGeoReference接口 首先RasterLayer实现了这个接口 CanGeoRef 监测该图层是否可以做配准 PointsTransform 将鼠标的位置转换为栅格文件上的相对坐标。 Rectify 将纠正的结果
阅读全文
摘要: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.
阅读全文
摘要:IMappMap=axMapControl1.Map;IFeatureLayerpFeatLyr=(IFeatureLayer)axMapControl1.get_Layer(0);IFeatureClasspFeatClass=pFeatLyr.FeatureClass;IFeatureClassDescriptorpFClsDp=newFeatureClassDescriptorClass();pFClsDp.Create(pFeatClass,null,"CODE");IWorkspaceFactorypWsf=newRasterWorkspaceFactoryCla
阅读全文
摘要:点线面缓冲分析//缓冲分析主要是生产缓冲图形,再用缓冲图形执行空间查询。//把需要缓冲的对象放在sesssion中,这样可以对同一个缓冲对象执行多个条件的缓冲分析ESRI.ArcGIS.ADF.Web.Geometry.Geometry geo = (ESRI.ArcGIS.ADF.Web.Geometry.Geometry)(map1.Page.Session["BufferAnalyesGeometry"]); double dis; if (!Double.TryParse(eventArg,out dis)) { dis = 0.0; } //获取mxd配置文件中的
阅读全文
浙公网安备 33010602011771号