Interface IGeometryDef

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[Guid("439A0D50-3915-11D1-9CA7-0000F8780619")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IGeometryDef

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#]

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;




[Visual Basic .NET]

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




Properties

AvgNumPoints

The estimated average number of points per feature.

int AvgNumPoints { get; }

Property Value

int

GeometryType

The enumerated geometry type.

esriGeometryType GeometryType { get; }

Property Value

esriGeometryType

GridCount

The number of spatial index grids.

int GridCount { get; }

Property Value

int

Remarks

Personal geodatabase feature classes only support one spatial index. Any additional indexes will be ignored. File and ArcSDE geodatabase feature classes support up to 3 spatial indexes.

GridSize[int]

The size of a spatial index grid.

double GridSize[int Index] { get; }

Parameters

Index int

Property Value

double

Remarks

Personal geodatabase feature classes only support one spatial index. Any additional indexes will be ignored. File and ArcSDE geodatabase feature classes support up to 3 spatial indexes. The GridSize index is zero based with a maximum of index of 2.

If the value returned by this property is -2, it means the spatial index is an R-Tree index (e.g. Oracle Spatial, Informix, PostgreSQL).

HasM

Indicates if the feature class has measure (M) values.

bool HasM { get; }

Property Value

bool

HasZ

Indicates if the featureClass has Z values.

bool HasZ { get; }

Property Value

bool

SpatialReference

The spatial reference for the dataset.

ISpatialReference SpatialReference { get; }

Property Value

ISpatialReference