资源简介
AE调用GP工具箱使用ArcGIS的自带功能解决实际问题的案例
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Geoprocessing;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geoprocessor;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.SystemUI;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.Geodatabase;
namespace GolfAir
{
public partial class Form1 : Form
{
private FormCaculate frmCaculateResult = null;
private FormAttribute frmAttribute = null;
IFeaturelayer pTocFeaturelayer = null;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
}
private void 搜索机场邻近高尔夫球场ToolStripMenuItem1_Click(object sender EventArgs e)
{
axMapControl.CurrentTool = null;
if (frmCaculateResult == null || frmCaculateResult.IsDisposed)
{
frmCaculateResult = new FormCaculate();
frmCaculateResult.MapControl = axMapControl;
frmCaculateResult.Show();
}
else
{
frmCaculateResult.Activate();
}
}
private void 打开地图文档ToolStripMenuItem_Click(object sender EventArgs e)
{
ICommand command = new ControlsOpenDocCommandClass();
command.OnCreate(axMapControl.object);
command.onclick();
}
private void 保存地图文档ToolStripMenuItem_Click(object sender EventArgs e)
{
ICommand command = new ControlsSaveAsDocCommandClass();
command.OnCreate(axMapControl.object);
command.onclick();
}
private void axTOCControl1_onmousedown(object sender ITOCControlEvents_onmousedownEvent e)
{
if (e.button == 2)
{
esriTOCControlItem pItem = esriTOCControlItem.esriTOCControlItemNone;
IBasicMap pMap = null;
ilayer player = null;
object unk = null;
object data = null;
axTOCControl1.HitTest(e.x e.y ref pItem ref pMap ref player ref unk ref data);
pTocFeaturelayer = player as IFeaturelayer;
if (pItem == esriTOCControlItem.esriTOCControlItemlayer && pTocFeaturelayer != null)
{
contextMenuStrip1.Show(Control.MousePosition);
}
}
}
private void 打开属性表ToolStripMenuItem_Click(object sender EventArgs e)
{
if (frmAttribute == null || frmAttribute.IsDisposed)
{
frmAttribute = new FormAttribute();
}
frmAttribute.CurFeaturelayer = pTocFeaturelayer;
frmAttribute.InitUI();
frmAttrib
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-11-04 22:57 GolfAir\
目录 0 2019-11-04 22:56 GolfAir\GolfAir\
文件 13691 2019-11-05 15:25 GolfAir\GolfAir\Form1.Designer.cs
文件 4072 2019-11-05 15:33 GolfAir\GolfAir\Form1.cs
文件 11740 2019-11-05 15:25 GolfAir\GolfAir\Form1.resx
文件 2388 2019-11-04 22:06 GolfAir\GolfAir\FormAttribute.Designer.cs
文件 2270 2019-11-12 12:28 GolfAir\GolfAir\FormAttribute.cs
文件 5817 2019-11-04 22:06 GolfAir\GolfAir\FormAttribute.resx
文件 6304 2019-11-04 22:04 GolfAir\GolfAir\FormCaculate.Designer.cs
文件 4727 2019-11-04 22:08 GolfAir\GolfAir\FormCaculate.cs
文件 5817 2019-11-04 22:04 GolfAir\GolfAir\FormCaculate.resx
文件 9332 2019-11-05 15:25 GolfAir\GolfAir\GolfAir.csproj
文件 452 2019-11-04 11:41 GolfAir\GolfAir\GolfAir.csproj.user
文件 15234 2019-11-04 11:41 GolfAir\GolfAir\LicenseInitializer.Designer.cs
文件 754 2019-11-04 11:41 GolfAir\GolfAir\LicenseInitializer.cs
文件 1639 2019-11-04 18:38 GolfAir\GolfAir\Program.cs
目录 0 2019-11-04 11:40 GolfAir\GolfAir\Properties\
文件 1262 2019-11-04 11:41 GolfAir\GolfAir\Properties\AssemblyInfo.cs
文件 2854 2019-11-04 11:41 GolfAir\GolfAir\Properties\Resources.Designer.cs
文件 5612 2019-11-04 11:40 GolfAir\GolfAir\Properties\Resources.resx
文件 1107 2019-11-04 11:41 GolfAir\GolfAir\Properties\Settings.Designer.cs
文件 249 2019-11-04 11:40 GolfAir\GolfAir\Properties\Settings.settings
目录 0 2019-11-04 21:29 GolfAir\GolfAir\bin\
目录 0 2019-11-05 15:20 GolfAir\GolfAir\bin\Debug\
文件 32768 2019-11-05 15:31 GolfAir\GolfAir\bin\Debug\GolfAir.exe
文件 58880 2019-11-05 15:31 GolfAir\GolfAir\bin\Debug\GolfAir.pdb
文件 101888 2019-11-04 16:46 GolfAir\GolfAir\bin\Debug\GolfAir.tbx
文件 22984 2019-12-10 15:00 GolfAir\GolfAir\bin\Debug\GolfAir.vshost.exe
文件 490 2016-07-16 19:44 GolfAir\GolfAir\bin\Debug\GolfAir.vshost.exe.manifest
目录 0 2020-03-22 18:47 GolfAir\GolfAir\bin\Release\
目录 0 2019-11-04 11:40 GolfAir\GolfAir\obj\
............此处省略81个文件信息
- 上一篇:matlab测距
- 下一篇:winformUI 图书管理系统UI
相关资源
- NB_stm32l151 采用stm32L151主芯片驱动NB做
- c# AES加密解密文件
- GPS卫星坐标计算
- GPIB卡控制源码包括vbc#vb.netlabviewbcbD
- 58同城App接口数据电话解密个人研究学
- c#案例AE二次开发IDW插值
- 新建并保存点图层(C#2005+AE9.2)
- AEC文件加密核心代码测试
- 任务并行(UsingParallel)
- WinForm实现win7 Aero磨砂效果
- 11912878C_sharp_AE
- GPS_locating_Map 一个用c#实现的GPS定位系
- t_AJAX_ASPMAP 在WebGIS地图上
- SceneControl 一个简单的基于AE的三维小
- AE-DEM C#+AE编译
- AE-OpenTalbe C#和ArcEngine 编译的小程序
- AE-interpolation C#+AE编译
- AE11
- CSharpAE ArcGIS engine二次开发的小程序
- SpatialAnalyst_ae
- gprs--pc c#开发
- Legend AE+C#在pagelayoutcontrol中添加图例、
- GPS 追踪车辆行程轨迹
- 3DSystem 基于c#和AE开发的三维显示查询
- 三维开发之洪水淹没_AE_+_C#.doc
- 基于VC#和AE(ARCENGINE)开发的综合地理
- arcgis engine 开发
- 利用卫星星历计算卫星位置C#开发
- C#+AE二次开发之属性查询及统计功能—
- C#GPS坐标转百度地图坐标
评论
共有 条评论