
C#
hdtrs2010
寻求技术帝的帮助~~~
展开
-
ArcEngine“不能再打开其它表了”的解决方法
ArcEngine“不能再打开其它表了”的解决方法查询的时候遇到ArcEngine“不能再打开其它表了”,要把游标释放掉。不就是一条条取数据吗?是由于查询过于频繁,游标来不及释放,所以会出现问题,用System.Runtime.InteropServices.Marshal.ReleaseComObject()就可以解决。转载 2013-03-11 23:34:22 · 3818 阅读 · 0 评论 -
AE中判断当前图层是点图层、线图层、还是面图层
IFeatureLayer pFeatureLayer; pFeatureLayer = axMapControl1.Map.get_Layer(0) as IFeatureLayer;//把pFeatureLayer 赋值为当前图层;for (int i = 0; i != axMapControl1.Map.LayerCount; ++i) {原创 2013-03-01 23:39:43 · 3038 阅读 · 0 评论 -
空间查询
(四)点空间查询IFeatureLayer pFeatureLayer = this.axMapControl1.get_Layer(1) as IFeatureLayer; IFeatureClass pFeatureClass = pFeatureLayer.FeatureClass; IPoint pPoint转载 2013-03-13 22:19:47 · 1368 阅读 · 0 评论 -
AE空间九关系查询
ISpatialFilter.SpatialRelDescription 翻译The array elements which describe the spatial relation between the query geometry and the requested geometries. There are 9 chars in this string which ca转载 2013-03-15 11:41:00 · 2143 阅读 · 0 评论 -
C#中ListView(CheckBox)滚动的技巧
问题:一ListView控件中(有CheckBox)有数十条数据,怎么样实现“不允许用户编辑ListView控件的同时,确保ListView的滚动条可以正常使用?”,回答:为“确保ListView的滚动条可以正常使用”,需要把ListView控件的Enabled属性设置为true,为了禁止用户改变ListView数据项的Check状态,可以在ListView控件的ItemC转载 2013-03-26 21:14:16 · 1186 阅读 · 0 评论 -
AE 学习小结---toccontrol图层移动
一、关于toccontrol的一些操作toccontrol图层拖动: 最开始想实现图层拖动时不知道toccontrol属性里可以设置,于是就用代码来实现了,虽然能拖动,但是没有自带的那么美观:定义全局变量:private esriTOCControlItem toccItem = esriTOCControlItem.esriTOCControlItemNone;转载 2014-03-16 19:05:36 · 4213 阅读 · 0 评论 -
属性表
IFeatureClass 获取字段值//比如我们给出了确定的图层名,我们要获取到该图层具体有哪些字段?并取出来//先获取所有图层及其名字 IMap pMap=axMapControl.Map; ILayer pLayer=null; for(int i=0;i { pLayer=pMap.get_layer(i);转载 2014-03-15 10:12:21 · 912 阅读 · 2 评论 -
C#重命名文件名
1.先在项目中添加引用:Microsoft.VisualBasic 然后在所需使用的文档中加上using Microsoft.VisualBasic.Devices; 命名空间2.就下面两行 Computer MyComputer = new Computer(); MyComputer.FileSystem.Ren转载 2014-08-31 15:05:08 · 714 阅读 · 0 评论