arcgis开发常用源码

arcgis开发常用源码

ID:21794110

大小:498.00 KB

页数:108页

时间:2018-10-24

arcgis开发常用源码_第1页
arcgis开发常用源码_第2页
arcgis开发常用源码_第3页
arcgis开发常用源码_第4页
arcgis开发常用源码_第5页
资源描述:

《arcgis开发常用源码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、技术资料arcgis开发常用源码1.点上生成面的代码if(m_pFeatureLayer.FeatureClass.ShapeType==esriGeometryType.esriGeometryPolygon){IPointCollectionm_pPointCollection=newPolygonClass();objectmissing=Type.Missing;inticount=newFeature.XLIST.Count;if(icount<3)return;for(inti=0;i

2、tClass();point.PutCoords(newFeature.XLIST,newFeature.YLIST);m_pPointCollection.AddPoint(point,refmissing,refmissing);}IPolygonm_pPolygon=m_pPointCollectionasIPolygon;if(m_pPolygon==null){System.Windows.Forms.MessageBox.Show("null");return;}else{ITopologicalOperatorpTopo=m_pPolygonas

3、ITopologicalOperator;if(pTopo!=null){pTopo.Simplify();}}IWorkspaceEditm_pWorkspaceEdit=m_EngineEditor.EditWorkspaceasIWorkspaceEdit;m_pWorkspaceEdit.StartEditOperation();IFeaturem_pFeature=m_pFeatureLayer.FeatureClass.CreateFeature();m_pFeature.Shape=m_pPolygonasIGeometry;m_pFeature

4、.Store();m_pWorkspaceEdit.StopEditOperation();}2.文件的打开保存另存的代码usingSystem;usingSystem.Windows.Forms;usingESRI.ArcGIS.esriSystem;usingESRI.ArcGIS.SystemUI;usingESRI.ArcGIS.Carto;namespaceSaveMapDocument{///

///SummarydescriptionforForm1.///publicclassSaveMapDocument:

5、System.Windows.Forms.Form{publicSystem.Windows.Forms.TextBoxtxtMapDocument;publicSystem.Windows.Forms.ButtoncmdOpen;publicSystem.Windows.Forms.ButtoncmdSave;publicSystem.Windows.Forms.ButtoncmdSaveAs;privateSystem.Windows.Forms.OpenFileDialogopenFileDialog1;共享知识技术资料privateSystem.Win

6、dows.Forms.SaveFileDialogsaveFileDialog1;privateIMapDocumentm_MapDocument;privateESRI.ArcGIS.Controls.AxToolbarControlaxToolbarControl1;privateESRI.ArcGIS.Controls.AxPageLayoutControlaxPageLayoutControl1;privateESRI.ArcGIS.Controls.AxLicenseControlaxLicenseControl1;privateESRI.ArcGI

7、S.Controls.AxTOCControlaxTOCControl1;///

///Requireddesignervariable.///privateSystem.ComponentModel.Containercomponents=null;publicSaveMapDocument(){////RequiredforWindowsFormDesignersupport//InitializeComponent();////TODO:AddanyconstructorcodeafterInitializeCompo

8、nentcall//}///

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。