com.esri.arcgis.geodatabase
Interface IGeometryDef

All Superinterfaces:
Serializable
All Known Subinterfaces:
IGeometryDefEdit
All Known Implementing Classes:
GeometryDef

public interface IGeometryDef
extends Serializable

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

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
IField

Method Summary
 int getAvgNumPoints()
          The estimated average number of points per feature.
 int getGeometryType()
          The enumerated geometry type.
 int getGridCount()
          The number of spatial index grids.
 double getGridSize(int index)
          The size of a spatial index grid.
 ISpatialReference getSpatialReference()
          The spatial reference for the dataset.
 boolean isHasM()
          Indicates if the feature class has measure (M) values.
 boolean isHasZ()
          Indicates if the featureClass has Z values.
 

Method Detail

getAvgNumPoints

int getAvgNumPoints()
                    throws IOException,
                           AutomationException
The estimated average number of points per feature.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The points
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGeometryType

int getGeometryType()
                    throws IOException,
                           AutomationException
The enumerated geometry type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
A com.esri.arcgis.geometry.esriGeometryType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
esriGeometryType

getGridSize

double getGridSize(int index)
                   throws IOException,
                          AutomationException
The size of a spatial index grid.

Product Availability

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

Parameters:
index - The index (in)
Returns:
The size
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getGridCount

int getGridCount()
                 throws IOException,
                        AutomationException
The number of spatial index grids.

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The grids
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

ISpatialReference getSpatialReference()
                                      throws IOException,
                                             AutomationException
The spatial reference for the dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasZ

boolean isHasZ()
               throws IOException,
                      AutomationException
Indicates if the featureClass has Z values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The hasZ
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isHasM

boolean isHasM()
               throws IOException,
                      AutomationException
Indicates if the feature class has measure (M) values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
The hasM
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.