ArcObjects Library Reference  (GeoDatabase)    

IGeometryDef Interface

Provides access to members that return information about the geometry definition.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read-only property AvgNumPoints Estimated average number of points per feature.
Read-only property GeometryType The enumerated geometry type.
Read-only property GridCount The number of spatial index grids.
Read-only property GridSize The size of a spatial index grid.
Read-only property HasM Indicates if the feature class has measure (M) values.
Read-only property HasZ Indicates if the featureClass has Z values.
Read-only property SpatialReference The spatial reference for the dataset.

CoClasses that implement IGeometryDef

CoClasses and Classes Description
GeometryDef ESRI Geometry Definition Object.

Remarks

The IGeometryDef interface provides read-only access to the GeometryDef properties.

The AvgNumPoints, GridCount and GridSize properties are all attributes of the geodatabase spatial index. Shapefiles will return 0 for GridCount.

[C#]     public void IGeometryDef__(IFeatureClass featureClass)
    {
        //The code below shows how to get to IGeometryDef from a feature class.
        string shapeFieldName = featureClass.ShapeFieldName;
        IFields fields = featureClass.Fields;
        int geometryIndex = fields.FindField(shapeFieldName);
        IField field = fields.get_Field(geometryIndex);
        IGeometryDef geometryDef = field.GeometryDef;
    }

[Visual Basic 6.0] The code below shows how to get to IGeometryDef from a feature class.
Dim lGeomIndex As Long
Dim sShpName As String
Dim pFields As IFields
Dim pField As IField
Dim pGeometryDef As IGeometryDef
sShpName = pFeatureClass.ShapeFieldName
Set pFields = pFeatureClass.Fields
lGeomIndex = pFields.FindField(sShpName)
Set pField = pFields.Field(lGeomIndex)
Set pGeometryDef = pField.GeometryDef

See Also

IField Interface

Example

IGeometryDef Example

 


Feedback Send feedback on this page