public interface GeometryType
Geometry
#getGeometryType()
method.Modifier and Type | Method and Description |
---|---|
GeometryType |
addAlias(java.lang.String alias) |
Geometry |
create()
This method creates a
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. |
java.util.Collection<java.lang.String> |
getAlias() |
int |
getDimension() |
java.lang.String |
getFullName()
Return the full name of this geometry type.
|
java.lang.Class |
getGeometryClass() |
GeometryOperation |
getGeometryOperation(int index)
Get the operation for this geometry at a concrete position
|
java.lang.String |
getName() |
int |
getSubType() |
int[] |
getSuperTypes() |
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.
|
java.lang.String |
toString() |
java.lang.String getName()
java.lang.String getFullName()
GeometryType addAlias(java.lang.String alias)
java.util.Collection<java.lang.String> getAlias()
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.CreateGeometryException
void setGeometryOperation(int index, GeometryOperation geomOp)
index
- geomOp
- GeometryOperation getGeometryOperation(int index)
index
- The position of the operationjava.lang.String toString()
toString
in class java.lang.Object
int getDimension()
boolean hasZ()
boolean hasM()
java.lang.Class getGeometryClass()
int[] getSuperTypes()