资源简介
利用C#+ArcEngine实现面周边点抽稀
代码片段和文件信息
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using ESRI.ArcGIS.ADF.baseClasses;
using ESRI.ArcGIS.ADF.CATIDs;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.SystemUI;
namespace PolygonSimplified
{
///
/// Summary description for CreateNewDocument.
///
public class CreateNewDocument : baseCommand
{
private IHookHelper m_hookHelper = null;
//constructor
public CreateNewDocument()
{
//update the base properties
base.m_category = “.NET Samples“;
base.m_caption = “NewDocument“;
base.m_message = “Create a new map“;
base.m_toolTip = “Create a new map“;
base.m_name = “DotNetTemplate_NewDocumentCommand“;
}
#region Overriden Class Methods
///
/// Occurs when this command is created
///
/// Instance of the application
public override void OnCreate(object hook)
{
if (m_hookHelper == null)
m_hookHelper = new HookHelperClass();
m_hookHelper.Hook = hook;
}
///
/// Occurs when this command is clicked
///
public override void onclick()
{
IMapControl3 mapControl = null;
//get the MapControl from the hook in case the container is a ToolbarControl
if (m_hookHelper.Hook is IToolbarControl)
{
mapControl = (IMapControl3)((IToolbarControl)m_hookHelper.Hook).Buddy;
}
//In case the container is MapControl
else if (m_hookHelper.Hook is IMapControl3)
{
mapControl = (IMapControl3)m_hookHelper.Hook;
}
else
{
MessageBox.Show(“Active control must be MapControl!“ “Warning“ MessageBoxButtons.OK MessageBoxIcon.Exclamation);
return;
}
//check to see if there is an active edit session and whether edits have been made
DialogResult result;
IEngineEditor engineEditor = new EngineEditorClass();
if ((engineEditor.EditState == esriEngineEditState.esriEngineStateEditing) && (engineEditor.HasEdits() == true))
{
result = MessageBox.Show(“Would you like to save your edits“ “Save Edits“ MessageBoxButtons.YesNoCancel MessageBoxIcon.Question);
switch (result)
{
case DialogResult.Cancel:
return;
case DialogResult.No:
engineEditor.StopEditing(false);
break;
case DialogResult.Yes:
engineEditor.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5612 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\Properties\Resources.resx
文件 249 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\Properties\Settings.settings
文件 1306 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\Properties\AssemblyInfo.cs
文件 2858 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\Properties\Resources.Designer.cs
文件 1115 2007-08-03 08:16 PolygonSimplified\PolygonSimplified\Properties\Settings.Designer.cs
文件 2238 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\App.ico
文件 2238 2007-08-03 08:15 PolygonSimplified\PolygonSimplified\Earth.ico
文件 5597 2011-08-16 15:04 PolygonSimplified\PolygonSimplified\PolygonSimplified.csproj
文件 490 2007-07-21 01:33 PolygonSimplified\PolygonSimplified\bin\Debug\PolygonSimplified.vshost.exe.manifest
文件 14328 2011-08-16 21:11 PolygonSimplified\PolygonSimplified\bin\Debug\PolygonSimplified.vshost.exe
文件 33280 2011-08-16 21:06 PolygonSimplified\PolygonSimplified\bin\Debug\PolygonSimplified.exe
文件 38400 2011-08-16 21:06 PolygonSimplified\PolygonSimplified\bin\Debug\PolygonSimplified.pdb
文件 764 2011-08-16 15:12 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.shp
文件 108 2011-08-16 15:12 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.shx
文件 73 2011-04-18 08:28 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.dbf
文件 397 2011-04-18 08:25 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.prj
文件 132 2011-08-16 15:12 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.sbn
文件 116 2011-08-16 15:12 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest.sbx
文件 1236 2011-08-16 19:38 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.shp
文件 108 2011-08-16 19:38 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.shx
文件 73 2011-04-18 09:57 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.dbf
文件 397 2011-04-18 09:55 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.prj
文件 132 2011-08-16 19:38 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.sbn
文件 116 2011-08-16 19:38 PolygonSimplified\PolygonSimplified\bin\Debug\polygonTest2.sbx
文件 4608 2007-08-03 08:16 PolygonSimplified\PolygonSimplified\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 247193 2011-08-11 21:54 PolygonSimplified\PolygonSimplified\obj\Debug\ResolveAssemblyReference.cache
文件 8172 2011-08-16 20:41 PolygonSimplified\PolygonSimplified\obj\Debug\PolygonSimplified.MainForm.resources
文件 180 2011-08-16 15:04 PolygonSimplified\PolygonSimplified\obj\Debug\PolygonSimplified.Properties.Resources.resources
文件 33280 2011-08-16 21:06 PolygonSimplified\PolygonSimplified\obj\Debug\PolygonSimplified.exe
文件 717 2011-08-16 21:11 PolygonSimplified\PolygonSimplified\obj\Debug\PolygonSimplified.csproj.FileListAbsolute.txt
............此处省略44个文件信息
- 上一篇:C#常用工具类代码集合Util自己工作总结
- 下一篇:基于C#的人事工资管理系统
相关资源
- ArcEngine+C#基本功能很全的代码
- ArcEngine 10.0 C#二次开发最新最全帮助文
- ArcEngine 10.0 C#二次开发最新最全帮助文
- C#基于vs2010的ArcEngine开发demo源码
- ArcEngine创建要素数据集、文件地理数
- C#+ArcEngine 二次开发,基本的各种功能
- 最为完整的arcengine基于C#的程序
- ArcEngine 最短路径分析C#源码)
- 基于C#语言的ArcGIS Engine开发基础与技
- ArcEngine+C#缓冲区分析(GP工具+ITopolo
- C# ArcEngine二次开发
- 利用C#和Arcengine实现地图的查询和属性
- C# arcengine 图层操作
- 放大,缩小,图形显示C#+ARCENGINE.rar
- C#+ArcEngine9.3基本功能开发源码
- ArcEngine开发鹰眼功能C#实现
- C#+ArcEngine:加载打开Shp矢量和栅格数
- C#+ArcEngine10.1:打开mxd地图文档VS2010窗
- C#+ArcEngine10.1:txt坐标数据转Shp矢量点
- Arcengine+C# 做空间插值的
- ArcEngine 时间滑块功能
- C# ArcEngine加载打开Las点云数据
- C#+ArcEngine:txt坐标数据转Shp矢量点
- C#+ArcEngine:矢量点转栅格-1VS2010窗体
- ArcEngine二次开发
- Arcengine查找最短路径
- ArcEngine中动态移动点的效果实现代码
- ArcEngine+C#统计图表柱状图,饼状图
- 基于C#+AE开发 公路灾害信息查询GIS系
- 各种基于Arcengine的利用c#实现的功能:
评论
共有 条评论