com.esri.arcgis.geodatabase
Interface IGeometryDefEdit

All Superinterfaces:
IGeometryDef, Serializable
All Known Implementing Classes:
GeometryDef

public interface IGeometryDefEdit
extends IGeometryDef, Serializable

Provides access to members that modify the geometry definition.

Remarks

The IGeometryDefEdit interface is used when creating a GeometryDef object. You would normally use this interface when defining a new feature class. You cannot use IGeometryDefEdit to modify an existing GeometryDef which is attached to a feature class; the same restrictions apply when using the standard ArcGIS user interface. For example, you cannot change the spatial reference of an existing feature class.

The following are valid Geometry types for a new feature class (from esriGeometryType):

esriGeometryPoint

esriGeometryMultipoint

esriGeometryPolyline

esriGeometryPolygon

esriGeometryMultiPatch

The SpatialReference property should always be set when creating a new GeometryDef. If a GeometryDef without a spatial reference is used to create a stand-alone feature class, an error will occur.

If a feature class is created in a feature dataset, and the SpatialReference property does not match the spatial reference of the feature dataset, the property will be modified to match that of the feature dataset.

Product Availability

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


Method Summary
 void setAvgNumPoints(int rhs1)
          The estimated average number of points per feature.
 void setGeometryType(int rhs1)
          The geometry type.
 void setGridCount(int rhs1)
          The number of spatial index grids.
 void setGridSize(int index, double rhs2)
          The size of a spatial index grid.
 void setHasM(boolean rhs1)
          Indicates if the feature class will support M values.
 void setHasZ(boolean rhs1)
          Indicates if the feature class will support Z values.
 void setSpatialReferenceByRef(ISpatialReference rhs1)
          The spatial reference of the dataset.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IGeometryDef
getAvgNumPoints, getGeometryType, getGridCount, getGridSize, getSpatialReference, isHasM, isHasZ
 

Method Detail

setAvgNumPoints

void setAvgNumPoints(int rhs1)
                     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

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

setGeometryType

void setGeometryType(int rhs1)
                     throws IOException,
                            AutomationException
The geometry type.

Remarks

The following are valid Geometry types for a new feature class (from esriGeometryType):

esriGeometryPoint

esriGeometryMultipoint

esriGeometryPolyline

esriGeometryPolygon

esriGeometryMultiPatch

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setGridSize

void setGridSize(int index,
                 double rhs2)
                 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)
rhs2 - The rhs2 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setGridCount

void setGridCount(int rhs1)
                  throws IOException,
                         AutomationException
The number of spatial index grids.

Remarks

GridCount specifies the number of spatial index grids. 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. Each additional index must be larger than the previous index.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setSpatialReferenceByRef

void setSpatialReferenceByRef(ISpatialReference rhs1)
                              throws IOException,
                                     AutomationException
The spatial reference of the dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setHasZ

void setHasZ(boolean rhs1)
             throws IOException,
                    AutomationException
Indicates if the feature class will support Z values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setHasM

void setHasM(boolean rhs1)
             throws IOException,
                    AutomationException
Indicates if the feature class will support M values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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