c 语言对gis导航二次开发,arcgis二次开发_arcgis二次开发语言_arcgis二次开发实例…[通俗易懂]

c 语言对gis导航二次开发,arcgis二次开发_arcgis二次开发语言_arcgis二次开发实例…[通俗易懂]arcgis二次开发arcgis二次开发Arcgis二次开发常用源代码1.点上生成面的代码if(m_pFeatureLayer.FeatureClass.ShapeType==esriGeometryType.esriGeometryPolygon){IPointCollectionm_pPointCollection=newPolygonClass();objectmiss…

大家好,又见面了,我是你们的朋友全栈君。

arcgis二次开发arcgis二次开发

Arcgis二次开发常用源代码

1.点上生成面的代码

if (m_pFeatureLayer.FeatureClass.ShapeType == esriGeometryType.esriGeometryPolygon) { IPointCollection m_pPointCollection = new PolygonClass(); object missing = Type.Missing; int icount = newFeature.XLIST.Count; if (icount < 3) return; for (int i = 0; i < icount; i++) { IPoint point = new PointClass(); point.PutCoords(newFeature.XLIST, newFeature.YLIST); m_pPointCollection.AddPoint(point, ref missing, ref missing); } IPolygon m_pPolygon = m_pPointCollection as IPolygon; if (m_pPolygon == null) { System.Windows.Forms.MessageBox.Show(“null”); return; } else { ITopologicalOperator pTopo = m_pPolygon as ITopologicalOperator; if (pTopo != null) { pTopo.Simplify(); } } IWorkspaceEdit m_pWorkspaceEdit = m_EngineEditor.EditWorkspace as IWorkspaceEdit; m_pWorkspaceEdit.StartEditOperation(); IFeature m_pFeature = m_pFeatureLayer.FeatureClass.CreateFeature(); m_pFeature.Shape = m_pPolygon as IGeometry; m_pFeature.Store(); m_pWorkspaceEdit.StopEditOperation(); }

2.文件的打开 保存 另存的代码

using System;

using System.Windows.Forms;

using ESRI.ArcGIS.esriSystem;

using ESRI.ArcGIS.SystemUI;

using ESRI.ArcGIS.Carto;

namespace SaveMapDocument

{

///

/// Summary description for Form1.

///

public class SaveMapDocument : System.Windows.Forms.Form

{

public System.Windows.Forms.TextBox txtMapDocument;

public System.Windows.Forms.Button cmdOpen;

public System.Windows.Forms.Button cmdSave;

public System.Windows.Forms.Button cmdSaveAs;

private System.Windows.Forms.OpenFileDialog openFileDialog1;

private System.Windows.Forms.SaveFileDialog saveFileDialog1;

private IMapDocument m_MapDocument;

private ESRI.ArcGIS.Controls.AxToolbarControl axToolbarControl1;

private ESRI.ArcGIS.Controls.AxPageLayoutControl axPageLayoutControl1;

private ESRI.ArcGIS.Controls.AxLicenseControl axLicenseControl1;

private ESRI.ArcGIS.Controls.AxTOCControl axTOCControl1;

///

/// Required designer variable.

///

private System.ComponentModel.Container components = null;

本文来自电脑杂谈,转载请注明本文网址:

http://www.pc-fly.com/a/tongxinshuyu/article-22954-1.html

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/150128.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 排版系统Latex傻瓜方式使用(论文排版)

    排版系统Latex傻瓜方式使用(论文排版)

    2022年2月5日
    54
  • datagrip2021 mac激活码【2021.10最新】

    (datagrip2021 mac激活码)最近有小伙伴私信我,问我这边有没有免费的intellijIdea的激活码,然后我将全栈君台教程分享给他了。激活成功之后他一直表示感谢,哈哈~IntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,下面是详细链接哦~https://javaforall.net/100143.html14…

    2022年3月30日
    97
  • maven—奇怪的bug「建议收藏」

    maven—奇怪的bug「建议收藏」 使用Mavenue构建项目时。需要使用@Aspect、@Before注解,但是一直报错,但时Maven项目中确实导入进但还是报错。然后百度也找不出所以然,浪费了好久时间,查找了下Maven仓库中的jar包,感觉这个jar包有问题,于是删除重新进行下载,最后一个就是重新下载后的jar包,对比还是发现了不同,至于为什么下载的不一样,我想着可能是网络问题吧。…

    2022年6月13日
    25
  • java mqtt服务器搭建「建议收藏」

    java mqtt服务器搭建「建议收藏」MQTT服务器搭建和客户端代码编写(java实现)服务器关于linux系统,可以在阿里云购买云服务器或者利用虚拟机安装CentOs系统。我用的就是阿里云的云服务器,比较方便吧安装Emqx服务器安装必要的依赖:$sudoyuminstall-yyum-utilsdevice-mapper-persistent-datalvm2设置稳定的仓库,比如CentOs7的例子:$sudoyum-config-manager–add-repohttps://repos.emqx.io

    2022年6月12日
    26
  • 给ocx进行签名

    给ocx进行签名

    2022年7月13日
    13
  • 本地mysql文件浏览器_可视化数据库浏览器(SQLite Database Browser)

    本地mysql文件浏览器_可视化数据库浏览器(SQLite Database Browser)SQLiteDatabaseBrowser可以管理所有iphone数据,基于Qt库开发,主要是为非技术用户创建、修改和编辑SQLite数据库的工具,使用向导方式实现。用来处理SQLite3数据库文件的应用程序,它能够打开sqlite3数据库文件(常见的文件扩展名为.db,.db3,.s3db;只要文件是SQLite3数据库文件,其扩展名不规范也不要紧)。SQLiteDatabas…

    2022年9月9日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号