IFeature IFeatureClass IFeatureDataset等接口的介绍

IFeature IFeatureClass IFeatureDataset等接口的介绍

摘自帮助文档

 

IFeature Interface

Feature指的是空间对象,它包含在一个feature class中,就如一行数据包含在一张表中,一个对象包含在一个对象类中一样。一个feature包含一个与之相关联的shape,其类型背定义在了feature class中。Shape对象可以是点、多点、多面、折线、面等(这些是Geometry库中的全部对象)。更多详情,参阅IGeometryDef接口。

值得注意的一点是所有的这些feature都有相同的几何类型(点、多点、折线、面、多面),比如标注这种feature,它的几何类型是面——由一个信封包裹着文字。

IFeature接口继承了IObjectIRow等接口,这两种接口的文档同样适用于IFeature接口。他们多出来的功能与这个featureshape相关,可以通过Shape属性进行获取和设置。相比于调用Value属性,这种调用方式将会更加方便。Shape属性是AO中联系几何图形和空间数据库对象模型重要纽带(?)。

ShapeCopy属性是featureshape属性的一个副本(cloned copy)。当对单个或多个featuregeometry进行改变时,使用ShapeCopy属性获得该featuregeometry的一个副本,对其进行改变,然后通过设定Shape属性的geometry来应用这个改变。



Features are spatial Objects. They are contained in a feature class in the same way that a row is contained in a table, and an object is contained in an object class. A feature has an associated shape, the type of which is defined by the feature class. The possible shape objects are Point, Multipoint, Multipatch, Polyline, and Polygon - these are all objects in the Geometry library. For more details, see the IGeometryDef interface.

One thing to note is that all features still have the same core geometry types of point, multipoint, polyline, polygon and multipatch; an example of this is the annotation feature, whose geometry type is polygon - this represents the envelope of the text element.

The IFeature interface extends the IObject and IRow interfaces, and as such, the documentation for those interfaces applies to this interface. The additional functionality relates to the features' shapes, accessed and set through the Shape property. This can be much more convenient than the alternative of using the Value property, since you don’t have to determine the index of the shape field. The Shape property is the main link in ArcObjects between the geometry and geodatabase object models.

The ShapeCopy property is a cloned copy of the feature’s Shape. When modifying the geometry of a feature or a set of features, use the ShapeCopy property to obtain a copy of the feature's geometry, perform the modification on the geometries, then apply the modifications by setting the geometry to the Shape property.

 

IFeatureClass Interface

IFeatureClass接口是获取和设定feature class的主要接口。例如,可以用IFeatureClass获取feature class的类型,在进行查询时获取满足条件的feature的个数,或者在feature class建立新的featureIFeatureClass接口继承自IObjectClass接口



The IFeatureClass interface is the main interface for getting and setting properties of a feature class. For example, use the IFeatureClass interface to get the type of feature class, get a count of features that satisfy some query, or create a new feature in the feature class. The IFeatureClass interface inherits from the IObjectClass interface. 

 

IFeatureDataset Interface

存储有简单的featurefeature class可以存在一个feature dataset内或者外面。在feature dataset外的feature class被称作standalone feature classes.

FeatureDataset是一个仅存在于空间数据库工作空间的数据集,并且所有包含在FeatureDataset下的数据集都是同种空间数据库的一部分。当对feature class进行编程的时候,要注意feature class有可能属于也有可能不属于一个空间数据库。

空间数据库中的每一个数据集都必须有唯一的名字。特别的,空间数据库中每一个feature class也必须有唯一的名字,且不受包含它的feature dataset的影响。注意到这与文件系统模型中不同,在文件系统模型中,两个不同的文件夹可能包含名称相同的文件。

IFeatureWorkSpace接口中提供的OpenFeatureClass方法可以用于打开工作空间中任意的feature class,包括stand-alone feature class和存在于feature dataset中的feature class

FeatureDataset是一个包含feature class的数据集,这些feature class有着与FeatureDataset相同的空间参考。FeatureDataset也可以包含Geometric NetworkRelationship Classes



Feature classes that store simple features can be organized either inside or outside a feature dataset. Those outside a feature dataset are called standalone feature classes.  

A FeatureDataset is a dataset that exists only in a geodatabase workspace and all the datasets contained in the FeatureDataset are also part of the same geodatabase. When programming with feature classes, you need to remember that the feature class may or may not belong to a feature dataset. 

Each dataset in a geodatabase must have a unique name. In particular, each feature class in a geodatabase must have a unique name, independent of its containing feature dataset. Note that this is different from a file system model where two folders may contain files with the same local name within the folder.

The OpenFeatureClass method available in the IFeatureWorkspace interface on a workspace may be used to open any feature class in the workspace, including both stand-alone feature classes and feature classes within a feature dataset, given the (unique) name of the feature class.

A FeatureDataset is a dataset that contains feature classes that share the same spatial reference as the Feature Dataset. FeatureDatasets can also contain Geometric Networks and Relationship Classes.

 

 

FeatureLayer

FeatureLayer是一个建立在矢量空间数据基础上的图层,矢量空间数据包括geodatabase, coverageshapefile feature class



A FeatureLayer is a layer based on vector geographic data which is typically a geodatabase, coverage, or shapefile feature class.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值