資源簡介
AE調(diào)用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 圖書管理系統(tǒng)UI
評論
共有 條評論