public interface GeometryType
Geometry
#getGeometryType()
method.Modifier and Type | Method and Description |
---|---|
Geometry |
create()
This method creates a
Geometry with the type specified
by this class. |
int |
getDimension() |
String |
getFullName()
Return the full name of this geometry type.
|
GeometryOperation |
getGeometryOperation(int index)
Get the operation for this geometry at a concrete position
|
String |
getName() |
int |
getSubType() |
int |
getType() |
boolean |
hasM() |
boolean |
hasZ() |
boolean |
isSubTypeOf(GeometryType geometryType)
Check if a geometry subType inherits of other subType.
|
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType.
|
boolean |
isTypeOf(GeometryType geometryType)
Check if a geometry type inherits of other type.
|
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type.
|
void |
setGeometryOperation(int index,
GeometryOperation geomOp)
Registers an operation for this geometry type.
|
String |
toString() |
String getName()
String getFullName()
int getType()
Geometry.TYPES
The type is an abstract representation of the object (Point, Curve...)
but it is not a concrete representation (Point2D, Point3D...).int getSubType()
Geometry.SUBTYPES
.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)boolean isTypeOf(int geometryType)
geometryType
- the value of the Geometry.TYPES
to check if is
it super typeboolean isSubTypeOf(int geometrySubType)
geometrySubType
- the value of the Geometry.SUBTYPES
to check if is
it super subTypeboolean isTypeOf(GeometryType geometryType)
geometryType
- the geometry type to check if is it super typeboolean isSubTypeOf(GeometryType geometryType)
geometryType
- the geometry type to check if is it super subtypeGeometry create() throws CreateGeometryException
Geometry
with the type specified
by this class. The geometry is empty, and all the internal
attributes must be assigned to a value when the geometry has
been created.InstantiationException
- This exception is maybe thrown when the application is trying
to instantiate the geometryIllegalAccessException
- This exception is maybe thrown when the application is trying
to instantiate the geometryCreateGeometryException
void setGeometryOperation(int index, GeometryOperation geomOp)
index
- geomOp
- GeometryOperation getGeometryOperation(int index)
index
- The position of the operationint getDimension()
boolean hasZ()
boolean hasM()