Shapefile文件是ArcGIS存储矢量要素的标准格式,要读写Shapefile最简单的方法当然是基于ArcObject(或者ArcEngine)开发,不过网上也有一些开源的解译Shapefile的代码都是值得参考的,lz曾经用到过一个,源码已经贴到下边,有兴趣的可以下载看看(来源已经记不清了,如果这是您的代码请联系我),下边是两种方法的代码,其实代码很简单,但由于经常会用到所以记下来以便日后查阅.直接上代码. 打开Shapefile: public static IFeatureClass…
IWorkspace接口提供访问工作空间的通用属性和方法,如它的连接属性,以及包含的数据集的方法. IWorkspace的成员字段: Members Description ConnectionProperties The connection properties of the workspace. DatasetNames The DatasetNames in the workspace. Datasets The datasets in the workspace. ExecuteS…
When To Use Use IWorkspaceFactory when you need to create a new workspace, connect to an existing workspace or find information about a workspace. Members All Properties Methods Description ContainsWorkspace Indicates if parentDirectory contains a…
using System; using System.Drawing; using System.Runtime.InteropServices; using ESRI.ArcGIS.ADF; using ESRI.ArcGIS.ADF.BaseClasses; using ESRI.ArcGIS.ADF.CATIDs; using ESRI.ArcGIS.Controls; using ESRI.ArcGIS.GlobeCore; using ESRI.ArcGIS.Carto; using…