|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabase.GeometryDef
public class GeometryDef
ESRI Geometry Definition object.
The GeometryDef object defines the spatial qualities of a feature class. The most fundmental spatial quality is the Geometry type, for example, point, line, and polygon. Other information necessary to define the feature class includes the spatial referencing system, whether the vertices have height or measure data, and, for geodatabases, the spatial index parameters.
The GeometryDef can be accessed from a shape field, that is a field of type esriFieldTypeGeometry. The actual geometry type is defined by the esriGeometryType enumeration, though currently only four values are acceptable with respect to GeometryDef objects: esriGeometryPoint, esriGeometryMultipoint, esriGeometryPolyline, and esriGeometryPolygon.
Beware of the confusion between the esriGeometryType enumeration and the similarly named esriFeatureType and esriShapeType. The following table shows the different roles of those enumerations.
ArcObjects Enumeration | Values | Interfaces that use the enumeration |
---|---|---|
esriGeometryType Type of geometry in a geodatabase. Those in bold are valid for feature classes, others are component geometry objects. |
esriGeometryPoint esriGeometryMultipoint esriGeometryPolygon esriGeometryPolyline esriGeometryLine esriGeometryCircularArc esriGeometryEllipticArc esriGeometryBezier3Curve esriGeometryPath esriGeometryNull esriGeometryRing esriGeometryEnvelope esriGeometryAny esriGeometryBag esriGeometryMultiPatch esriGeometryTriangleStrip esriGeometryTriangleFan esriGeometryRay esriGeometrySphere esriGeometryTriangles |
IFeatureClass::ShapeType IGeometry::GeometryType IGeometryDef::GeometryType also IGeometryDefEdit, IGeometryFactory, IEditSketchExtension, IGridConversionOp, IDimensionConstructor |
esriFeatureType Feature types defined by feature class extensions |
esriFTSimple esriFTSimpleJunction esriFTSimpleEdge esriFTComplexJunction esriFTComplexEdge esriFTAnnotation esriFTCoverageAnnotation esriFTDimension esriFTRasterCatalogItem |
IFeature::FeatureType IFeatureClass::FeatureType IFeatureClassDescription::FeatureType IFeatureWorkspace::CreateFeatureClass IFeatureDataset::CreateFeatureClass also, IGeometricNetwork and INetworkLoader |
esriShapeType Type of geometry in a shapefile |
See the help for esriShapeType for a full list |
IFeature::FeatureType IFeatureClass::FeatureType IFeatureClassDescription::FeatureType IFeatureWorkspace::CreateFeatureClass IFeatureDataset::CreateFeatureClass also, IGeometricNetwork and INetworkLoader |
IField
,
Serialized FormConstructor Summary | |
---|---|
GeometryDef()
Constructs a GeometryDef using ArcGIS Engine. |
|
GeometryDef(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. GeometryDef theGeometryDef = (GeometryDef) obj; |
Method Summary | |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver. |
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone. |
int |
getAvgNumPoints()
The estimated average number of points per feature. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
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. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
ISpatialReference |
getSpatialReference()
The spatial reference for the dataset. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties. |
boolean |
isHasM()
Indicates if the feature class has measure (M) values. |
boolean |
isHasZ()
Indicates if the featureClass has Z values. |
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
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. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public GeometryDef() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GeometryDef(Object obj) throws IOException
GeometryDef theGeometryDef = (GeometryDef) obj;
obj
to GeometryDef
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getAvgNumPoints() throws IOException, AutomationException
getAvgNumPoints
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getGeometryType() throws IOException, AutomationException
getGeometryType
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriGeometryType
public double getGridSize(int index) throws IOException, AutomationException
getGridSize
in interface IGeometryDef
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getGridCount() throws IOException, AutomationException
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.
getGridCount
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws IOException, AutomationException
getSpatialReference
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasZ() throws IOException, AutomationException
isHasZ
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasM() throws IOException, AutomationException
isHasM
in interface IGeometryDef
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAvgNumPoints(int rhs1) throws IOException, AutomationException
setAvgNumPoints
in interface IGeometryDefEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGeometryType(int rhs1) throws IOException, AutomationException
The following are valid Geometry types for a new feature class (from esriGeometryType):
esriGeometryPoint
esriGeometryMultipoint
esriGeometryPolyline
esriGeometryPolygon
esriGeometryMultiPatch
setGeometryType
in interface IGeometryDefEdit
rhs1
- A com.esri.arcgis.geometry.esriGeometryType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.esriGeometryType
public void setGridSize(int index, double rhs2) throws IOException, AutomationException
setGridSize
in interface IGeometryDefEdit
index
- The index (in)rhs2
- The rhs2 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setGridCount(int rhs1) throws IOException, AutomationException
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.
setGridCount
in interface IGeometryDefEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceByRef(ISpatialReference rhs1) throws IOException, AutomationException
setSpatialReferenceByRef
in interface IGeometryDefEdit
rhs1
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHasZ(boolean rhs1) throws IOException, AutomationException
setHasZ
in interface IGeometryDefEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHasM(boolean rhs1) throws IOException, AutomationException
setHasM
in interface IGeometryDefEdit
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws IOException, AutomationException
esri_clone
in interface IClone
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws IOException, AutomationException
IsEqual returns True if the receiver and the source have the same properties. Note, this does not imply that the receiver and the source reference the same object.
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws IOException, AutomationException
IsIdentical returns true if the receiver and the source reference the same object.
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |