09 2012 档案
摘要:本人刚做了有关属性查询的一些功能的实现,在这总结一下。有错误之处和不专业之处还希望GIS和AE开发的高手们给以指点。//******其中第二部分发生了点错误,现在已更改***********//①:据FeatureLayer得到Feature的方法:代码如下: ILayer pLayer; pLayer = frm1.axMapControl1.Map.get_Layer(LayerBoxEdit.SelectedIndex) as ILayer;//frm1和LayerBoxEdit.SelectedIndex都是变量 IFeatureLayer pFeatureLayer; pFeatur
阅读全文
摘要:代码如下; System.Runtime.InteropServices.Marshal.ReleaseComObject(pFeatureCursor);//pFeatureCursor为要素指针;用完指针之后不释放的话,会引起很多错误,比如指向错误,返回错误等等。此类指针释放一般常见于非托管代码中。
阅读全文
摘要:实现效果如下: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 ESRI.ArcGIS.esriSystem;using ESRI.ArcGIS.Carto;using ESRI.ArcGIS.Controls;using ESRI.ArcGIS.ADF;using ESRI.ArcG
阅读全文
摘要:闲话不多,代码如下: private void button1_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "*.mxd|*.mxd"; ofd.ShowDialog(); string fp = ofd.FileName; axMapControl1.LoadMxFile(fp,0,Type.Missing); } bool bu = false; private void button2_Click(object sender, E
阅读全文
浙公网安备 33010602011771号