This document is archived and information here might be outdated. Recommended version. |
Provides access to members that return information about the geometry definition.
Name | Description | |
---|---|---|
AvgNumPoints | The estimated average number of points per feature. | |
GeometryType | The enumerated geometry type. | |
GridCount | The number of spatial index grids. | |
GridSize | The size of a spatial index grid. | |
HasM | Indicates if the feature class has measure (M) values. | |
HasZ | Indicates if the featureClass has Z values. | |
SpatialReference | The spatial reference for the dataset. |
CoClasses and Classes | Description |
---|---|
GeometryDef | Esri Geometry Definition object. |
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.
The following code shows how to get the GeometryDef of a feature class:
// Get the GeometryDef from the feature class's shape field.
String shapeFieldName=featureClass.ShapeFieldName;
int shapeFieldIndex=featureClass.FindField(shapeFieldName);
IFields fields=featureClass.Fields;
IField shapeField=fields.get_Field(shapeFieldIndex);
IGeometryDef geometryDef=shapeField.GeometryDef;
The following code shows how to get the GeometryDef of a feature class:
' Get the GeometryDef from the feature class's shape field.
Dim shapeFieldName As String=featureClass.ShapeFieldName
Dim shapeFieldIndex As Integer=featureClass.FindField(shapeFieldName)
Dim fields As IFields=featureClass.Fields
Dim shapeField As IField=fields.Field(shapeFieldIndex)
Dim geometryDef As IGeometryDef=shapeField.GeometryDef
IField Interface | ISpatialReference Interface