AO创建IFeature的两种方法(转载)
http://www.cnblogs.com/MyLucifer/archive/2010/12/01/1893212.html#commentform
feature本质:
第一部分: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.
要点:Feature包含在FeatureClass中,就像一条记录包含在一个表当中,一个对象包含在一个对象集当中。
feature本质:深度剖析
第二部分: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.
There are several Feature subclasses which can also be accessed using the IFeature interface. These include annotation, dimension, and network features.