资源简介
通过使用C#语言编写的MapX二次开发,实现了鹰眼、漫游、空间查询、缓冲区分析、专题图等基本功能

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AxMapXLib;
using MapXLib;
namespace _2010302590155
{
public partial class Atribute : Form
{
AxMap axMap1 = null;
int nindex = 0;
public Atribute(AxMap axMapint index)
{
InitializeComponent();
axMap1 = axMap;
nindex = index;
}
public void dataGridView1_RowHeaderMouseClick(object sender DataGridViewCellMouseEventArgs e)
{
//dataGridView选中对象在主视图中选中
CMapXlayer layer = axMap1.layers._Item(nindex + 1);
object feature = ““;
//定义查询对象
CMapXlayerFind find = layer.Find;
//得到查询对象
CMapXFindFeature Foundobject = null;
string m_strQuery = ““;
axMap1.layers.ClearSelection();
axMap1.Refresh();
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
if (dataGridView1.Rows[i].Selected == true)
{
feature = i + 1;
CMapXSelection Selection = layer.Selection;
m_strQuery = dataGridView1.Rows[i].Cells[0].Value.ToString();
Foundobject = find.Search(m_strQuery);
//被选中点在中心显示
double dX dY;
dX = Foundobject.CenterX;
dY = Foundobject.CenterY;
axMap1.CenterX = dX;
axMap1.CenterY = dY;
Selection.SelectByID(feature SelectionTypeConstants.miSelectionNew);
}
}
}
private void dataGridView1_CellFormatting(object sender DataGridViewCellFormattingEventArgs e)
{
CMapXlayers layers = axMap1.layers;
CMapXlayer layer = layers[nindex + 1];
CMapXFeatures features = layer.AllFeatures;
DataGridViewRow CurrentRow = this.dataGridView1.Rows[e.RowIndex];
CurrentRow.HeaderCell.Value = Convert.ToString(e.RowIndex + 1);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 5635 2013-05-15 10:39 2010302590155\2010302590155\2010302590155.csproj
I.A.... 2344 2013-05-10 11:48 2010302590155\2010302590155\Atribute.cs
I.A.... 2770 2013-05-10 11:48 2010302590155\2010302590155\Atribute.Designer.cs
I.A.... 5817 2013-05-10 11:42 2010302590155\2010302590155\Atribute.resx
I.A.... 66048 2013-05-16 23:14 2010302590155\2010302590155\bin\Debug\2010302590155.exe
I.A.... 93696 2013-05-16 23:14 2010302590155\2010302590155\bin\Debug\2010302590155.pdb
I.A.... 11600 2013-05-16 16:12 2010302590155\2010302590155\bin\Debug\2010302590155.vshost.exe
I.A.... 490 2010-03-17 22:39 2010302590155\2010302590155\bin\Debug\2010302590155.vshost.exe.manifest
I.A.... 39936 2013-05-03 10:20 2010302590155\2010302590155\bin\Debug\AxInterop.MapXLib.dll
I.A.... 166400 2013-05-03 10:20 2010302590155\2010302590155\bin\Debug\Interop.MapXLib.dll
I.A.... 3915 2013-05-15 11:14 2010302590155\2010302590155\Distance.cs
I.A.... 5209 2013-05-15 11:14 2010302590155\2010302590155\Distance.Designer.cs
I.A.... 5817 2013-05-15 11:14 2010302590155\2010302590155\Distance.resx
I.A.... 42428 2013-05-16 23:14 2010302590155\2010302590155\Form1.cs
I.A.... 52425 2013-05-16 23:14 2010302590155\2010302590155\Form1.Designer.cs
I.A.... 24414 2013-05-16 23:14 2010302590155\2010302590155\Form1.resx
I.A.... 4807 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\2010302590155.csproj.FileListAbsolute.txt
I.A.... 781 2013-05-16 16:12 2010302590155\2010302590155\obj\x86\Debug\2010302590155.csproj.ResolveComReference.cache
I.A.... 66048 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\2010302590155.exe
I.A.... 93696 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\2010302590155.pdb
I.A.... 39936 2013-05-03 10:20 2010302590155\2010302590155\obj\x86\Debug\AxInterop.MapXLib.dll
I.A.... 24101 2013-05-16 16:12 2010302590155\2010302590155\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
I.A.... 6523 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
I.A.... 2992 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\GenerateResource.read.1.tlog
I.A.... 12452 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\GenerateResource.write.1.tlog
I.A.... 166400 2013-05-03 10:20 2010302590155\2010302590155\obj\x86\Debug\Interop.MapXLib.dll
I.A.... 180 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\_2010302590155.Atribute.resources
I.A.... 180 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\_2010302590155.Distance.resources
I.A.... 12762 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\_2010302590155.Form1.resources
I.A.... 180 2013-05-16 23:14 2010302590155\2010302590155\obj\x86\Debug\_2010302590155.Properties.Resources.resources
............此处省略25个文件信息
相关资源
- C# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
评论
共有 条评论