c#开发常用源码

c#开发常用源码

ID:32518501

大小:569.30 KB

页数:173页

时间:2019-02-10

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

《c#开发常用源码》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

1、ArcGISEngine开发常用源码2011-6-24ArcGISEngine开发常用源码1.点上生成面的代码if(m_pFeatureLayer.FeatureClass.ShapeType==esriGeometryType.esriGeometryPolygon){IPointCollectionm_pPointCollection=newPolygonClass();objectmissing=Type.Missing;inticount=newFeature.XLIST.Count;if(icount<3

2、)return;for(inti=0;i

3、MessageBox.Show("null");return;}else{ITopologicalOperatorpTopo=m_pPolygonasITopologicalOperator;if(pTopo!=null){pTopo.Simplify();}}IWorkspaceEditm_pWorkspaceEdit=m_EngineEditor.EditWorkspaceasIWorkspaceEdit;m_pWorkspaceEdit.StartEditOperation();IFeaturem_pFeat

4、ure=m_pFeatureLayer.FeatureClass.CreateFeature();m_pFeature.Shape=m_pPolygonasIGeometry;m_pFeature.Store();m_pWorkspaceEdit.StopEditOperation();}2.文件的打开保存另存的代码usingSystem;usingSystem.Windows.Forms;usingESRI.ArcGIS.esriSystem;usingESRI.ArcGIS.SystemUI;usingESRI

5、.ArcGIS.Carto;namespaceSaveMapDocument{///

///SummarydescriptionforForm1.///publicclassSaveMapDocument:System.Windows.Forms.Form{publicSystem.Windows.Forms.TextBoxtxtMapDocument;publicSystem.Windows.Forms.ButtoncmdOpen;publicSystem.Windows.Fo

6、rms.ButtoncmdSave;publicSystem.Windows.Forms.ButtoncmdSaveAs;privateSystem.Windows.Forms.OpenFileDialogopenFileDialog1;privateSystem.Windows.Forms.SaveFileDialogsaveFileDialog1;privateIMapDocumentm_MapDocument;privateESRI.ArcGIS.Controls.AxToolbarControlaxTool

7、barControl1;privateESRI.ArcGIS.Controls.AxPageLayoutControlaxPageLayoutControl1;privateESRI.ArcGIS.Controls.AxLicenseControlaxLicenseControl1;privateESRI.ArcGIS.Controls.AxTOCControlaxTOCControl1;///

///Requireddesignervariable.///privateSyst

8、em.ComponentModel.Containercomponents=null;publicSaveMapDocument(){////RequiredforWindowsFormDesignersupport//InitializeComponent();////TODO:AddanyconstructorcodeafterInitializeCom

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

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

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