上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页
摘要: DescriptionThe IFieldEdit interface is used when creating new fields. You should not use it to modify fields, for that purpose use IClassSchemaEdit. In general, when modifying fields, the restrictions that apply in ArcCatalog also apply in ArcObjects; for example, you cannot change the name or type 阅读全文
posted @ 2013-08-07 11:32 秋水惜朝 阅读(655) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe Fields object represents a collection of columns in a table. The term field is synonymous with column. Each table in a database has an ordered collection of fields, there is always at least one field in a table. The ordered collection behaves like a list, so it is possible to access i 阅读全文
posted @ 2013-08-07 11:30 秋水惜朝 阅读(432) 评论(0) 推荐(0) 编辑
摘要: The available kinds of geometry objects.ConstantValueDescriptionesriGeometryNull0A geometry of unknown type.esriGeometryPoint1A single zero dimensional geometry.esriGeometryMultipoint2An ordered collection of points.esriGeometryLine13A straight line segment between two points.esriGeometryCircularArc 阅读全文
posted @ 2013-08-07 11:20 秋水惜朝 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 如何创建一个要素数据类 创建要素类用到了IFeatureWorkspace.CreateFeatureClass方法,在这个方法中有众多的参数,为了满足这些参数,我们要学习和了解下面的接口. IField,IFieldEdit,IFields,IFieldsEditI,GeometryDef,IGeometryDefEdit接口 字段对应表中的一列,一个要素类必须有至少2个字段,而多个字段的集合就构成了字段集,在要素类中,有一个特殊的字段,描述了空间对象,我们称之为几何字段,其中GeometryDef是用来设计几何字段的。这个几何字段定义了要素类的类型,比如说我们要在Catalog创建一个点要 阅读全文
posted @ 2013-08-07 11:05 秋水惜朝 阅读(3337) 评论(0) 推荐(0) 编辑
摘要: 如何删除要素类 要想删除一个要素类,那么必须先得到这个,在得到这个要素类的时候,我们要学习一个新的接口IFeatureWorkspace。 IFeatureWorkspace 接口介绍 这个接口主要是用于管理基于矢量数据的,如表,,要素类,要素数据集等。MembersDescriptionCreateFeatureClassCreates a new standalone feature class under the workspace.CreateFeatureDatasetCreates a new feature dataset.CreateQueryDefCreate a query 阅读全文
posted @ 2013-08-07 10:31 秋水惜朝 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 1.IName(名称对象)介绍数据集对象可以分为两大类,一种是Table,我们无法将Table存储在要素数据集中(可以尝试下),一种是Geodataset,这个是要素类的容器。数据集对象有一个很重要的属性,就是这个Fullname,用这个可以返回和数据集相关的名称对象,而这个名称对象有一个很重要的方法Open(),这个可以获取和这个名称对象相关的对象(内存中的),Open()方法的返回值是object,所以用Open方法的时候,我们必须心里清楚,自己到底是要得到那个对象,然后QI到我们要的对象上。IName对象是一个代表性对象。通过使用IName对象,可以访问它所代表的对象的一些基本属性,而不 阅读全文
posted @ 2013-08-07 10:06 秋水惜朝 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: 在ArcGIS Engine中,要得到某一个类,首要要获取工作空间,然后进入工作空间再得到相应的东西,我们定义一个函数用来获取个人数据库的路径 public string WsPath() { string WsFileName=""; OpenFileDialog OpenFile = new OpenFileDialog(); OpenFile.Filter = "个人数据库(MDB)|*.mdb"; DialogResult DialogR = OpenFile.ShowDialog(); if (DialogR == DialogResult.C 阅读全文
posted @ 2013-08-07 09:34 秋水惜朝 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 网络来源:http://changqingnew.blog.163.com/blog/static/1075233820103383633639///IFeatureWorkspace OpenFeatureClass Example//This example opens a shapefile as a feature class。//e.g., nameOfShapefile = "States";// dataPath = "D:\\Data\\Esridata\\USA"public void IFeatureWorkspace_OpenFea 阅读全文
posted @ 2013-08-07 09:21 秋水惜朝 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: IWorkspace接口提供访问工作空间的通用属性和方法,如它的连接属性,以及包含的数据集的方法。IWorkspace的成员字段:MembersDescriptionConnectionPropertiesTheconnectionpropertiesoftheworkspace.DatasetNamesTheDatasetNamesintheworkspace.DatasetsThedatasetsintheworkspace.ExecuteSQLExecutesthespecifiedSQLstatement.ExistsChecksiftheworkspaceexists.IsDirec 阅读全文
posted @ 2013-08-07 09:02 秋水惜朝 阅读(3883) 评论(0) 推荐(0) 编辑
摘要: 第一步:设计界面如下代码: ... 阅读全文
posted @ 2013-08-05 23:43 秋水惜朝 阅读(372) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页