public interface IGeometry extends Serializable
equals() and methods which explicitly refer to Z or M,
all predicates test only 2D values, and the 2D output of any method which
produces a geometry is defined independently of the Z or M values, if any, of
the input.
NOTE: Not all implementations of IGeometry are serializable. Make sure you
serialize the copy of the geometry with getCopy() when transferring geometry
objects.| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(com.mapinfo.midev.geometry.DirectPosition dp)
Test if a direct position is in the set of direct positions defined
by this geometry.
|
Area |
getArea(ComputationType ct)
Computes the total area of this geometry using the specified model.
|
CoordSys |
getCoordSys()
Returns the coordinate reference system of this geometry.
|
IGeometry |
getCopy()
Get a (permanent) copy of this
IGeometry. |
IGeometry |
getCopy(CoordSys csys)
Get a (permanent) copy of this
IGeometry transformed to the
given coordinate system. |
int |
getDimension()
Get the topological dimension of a geometry instance based on the geometry type.
|
Envelope |
getEnvelope()
Gets the bounding box of the geometry (the range of direct
positions that the geometry spans).
|
Length |
getPerimeter(ComputationType ct)
Computes the total perimeter of this geometry.
|
SpatialInfo |
getSpatialInfo()
Get the spatial info for this geometry.
|
GeometryType |
getType()
Return the type of this geometry.
|
boolean |
isEmpty()
Does this geometry have any contents.
|
boolean |
isTransient()
Answers whether this is a transient geometry.
|
boolean |
mAllSet()
Does this geometry have all non-null MValues.
|
boolean |
mSet()
Does this geometry have at least one non-null MValue.
|
boolean |
zAllSet()
Do all the Z values in this geometry have a value that is not Double.NaN.
|
boolean |
zSet()
Does at least one Z value in this geometry have a value that is not Double.NaN.
|
boolean zSet()
IGeometry.isEmpty()boolean zAllSet()
IGeometry.isEmpty()boolean mSet()
IGeometry.isEmpty()boolean mAllSet()
IGeometry.isEmpty()int getDimension()
GeometryType,
IGeometry.isEmpty()Envelope getEnvelope()
boolean isEmpty()
true if the geometry does not define any direct
positions.SpatialInfo getSpatialInfo()
CoordSys getCoordSys()
GeometryType getType()
boolean isTransient()
true if this geometry is transient and
false if it is permanent.boolean contains(com.mapinfo.midev.geometry.DirectPosition dp)
dp - the DirectPosition to test.true if the specified position is part of this geometry.IGeometry getCopy()
IGeometry.IGeometry.IGeometry.getCopy(CoordSys),
IGeometry.isTransient()IGeometry getCopy(CoordSys csys)
IGeometry transformed to the
given coordinate system.csys - coordinate system of the returned copyIGeometry in the given coordinate systemIGeometry.isTransient()Area getArea(ComputationType ct)
ct - the preferred computation model.InvalidComputationTypeException - if the given computation type is incompatible with the
coordinate system of this geometryIGeometry.isEmpty()Length getPerimeter(ComputationType ct)
ct - the preferred computation model.InvalidComputationTypeException - if the given computation type is incompatible with the
coordinate system of this geometryIGeometry.isEmpty()