GIS在哪里

 

2009年8月26日

WinForm中让ComboBox Add 键值对

摘要: ArrayList mylist = new ArrayList(); mylist.Add(new DictionaryEntry("0", "点图层")); mylist.Add(new DictionaryEntry("1", "线图层")); mylist.Add(new DictionaryEntry("2", "面图层")); SHPType.DataSource = mylist; ... 阅读全文

posted @ 2009-08-26 17:14 寻找GIS 阅读(596) 评论(0) 推荐(0) 编辑

2009年8月25日

GIS 克隆 IClone

摘要: 引用类型传参时(多个引用向同一个内存地址)。任何一处改变所有引用的地方都将改变。有的时候我们需要在传参数进去之前备份一份来满足用户撤销。这就用到了IClone接口。现用克隆symbol为例来演示这个接口的使用方法。其中pSymbol实现了Isymbol接口。 ISymbol pOriginalSymbol; IClone pCloneFatherSymbol; pCloneFatherSymbol... 阅读全文

posted @ 2009-08-25 16:59 寻找GIS 阅读(425) 评论(0) 推荐(1) 编辑

2009年8月6日

读取shp文件并把shp文件添加到地图中

摘要: ILayer pLayer = operateShp.GetIlayerByShapefile(path, name); pMap.AddLayer(pLayer); public ILayer GetIlayerByShapefile(string path, string fileName) { IWorkspaceFactory pWorkspaceFactory = new Shapef... 阅读全文

posted @ 2009-08-06 15:41 寻找GIS 阅读(1254) 评论(0) 推荐(1) 编辑

创建shp文件并把feature添加到该shp文件中

摘要: IFeatureCursor cursor; IFeatureBuffer featureBuffer; IFeatureClass featureClass; featureClass = operateShp.CreateShapefile(path, name, polygon.GeometryType); cursor = featureClass.Insert(true); featur... 阅读全文

posted @ 2009-08-06 15:39 寻找GIS 阅读(834) 评论(0) 推荐(0) 编辑

获取所有图层中选择的feature

摘要: IGeometry polygon; IActiveView pActiveView; IEnumFeature pEnumFeature; IFeature pFeature; IFeature pFirstFeature; pActiveView = (IActiveView)pMap; if (pMap.SelectionCount == 0) { return; } pEnumFeatur... 阅读全文

posted @ 2009-08-06 15:23 寻找GIS 阅读(449) 评论(0) 推荐(0) 编辑

获取当前图层选择的feature

摘要: IFeatureLayer pFeatureLayer; IFeatureSelection pFeatSel; ISelectionSet pSelectionSet; pFeatureLayer = pCurrentLayer as IFeatureLayer; pFeatSel = (IFeatureSelection)pCurrentLayer; pSelectionSet = pFeat... 阅读全文

posted @ 2009-08-06 15:21 寻找GIS 阅读(441) 评论(0) 推荐(0) 编辑

2009年8月5日

arcgis9.3破解

摘要: 1. 安装LM: [ESRI.ArcGis.Desktop.v9.3.Crack.Only-TBE]-- license_server_setup-- LMSetup.exe,双击,安装。 在需要注册文件的时候,浏览同目录下的37102011.efl9(把server后面的主机名换成自己的机器名),一步一步,安装完成。2. 将[license_server_crack]文件夹下的5个文件拷贝到LM... 阅读全文

posted @ 2009-08-05 15:16 寻找GIS 阅读(2201) 评论(0) 推荐(0) 编辑

2009年7月27日

打开、保存、另存mxd文件

摘要: 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.ADF;using ESRI.ArcGIS.Co... 阅读全文

posted @ 2009-07-27 16:21 寻找GIS 阅读(2110) 评论(0) 推荐(0) 编辑

2009年7月15日

tomcat4.1与apache集成

摘要: 1. 安装Apache2.2.42. 安装Tomcat4.13. 拷贝mod_jk-apache-2.2.4.so文件到apache/modules目录中。(在此2.2.4应与apache的版本一致)4. 拷贝workers.properties文件到apache/conf目录中。用Notepad打开该文件,修改workers.tomcat_home,workers.java_home使其指向To... 阅读全文

posted @ 2009-07-15 16:04 寻找GIS 阅读(164) 评论(0) 推荐(0) 编辑

tomcat环境变量设置

摘要: CATALINA_HOME F:\TomcatClasspath .;%JAVA_HOME%\lib\tool.jar;%JAVA_HOME%\lib\rt.jar;java_home F:\jdkPath %PATH%;%JAVA_HOME%\bin;(放到最前面) 阅读全文

posted @ 2009-07-15 10:20 寻找GIS 阅读(165) 评论(0) 推荐(0) 编辑

导航