Package com.kheops.jmap.spatial
Class DefaultGeometry
java.lang.Object
com.kheops.jmap.spatial.DefaultGeometry
- All Implemented Interfaces:
Geometry,Serializable,Cloneable
- Direct Known Subclasses:
Ellipse,GeometryCollection,LineString,Point,Polygon,Rectangle
- See Also:
-
Field Summary
Fields inherited from interface com.kheops.jmap.spatial.Geometry
GEOMETRY_ANNOTATION, GEOMETRY_COMPLEX, GEOMETRY_ELLIPSE, GEOMETRY_LINE, GEOMETRY_LINEAR_RING, GEOMETRY_LINESTRING, GEOMETRY_MULTI_ANNOTATION, GEOMETRY_MULTI_LINESTRING, GEOMETRY_MULTI_POINT, GEOMETRY_MULTI_POLYGON, GEOMETRY_POINT, GEOMETRY_POLYGON, GEOMETRY_RECTANGLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasText()Returns this geometry encoded using the Well-Known Text (WKT) standard.abstract DefaultGeometryclone()Clones this geometry.booleanspatiallyEquals(Geometry geometry) Tests if this geometry is equal to the argument, on a topological point of view
it means that they represent the same geometry, even if it is described differently (direction of the rings, order of the rings)
it does not remove additional points on lineString (3 points aligned), one must use smoother.removeExtraPoints() before in order to achieve that.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kheops.jmap.spatial.Geometry
area, boundary, createBounds, getBounds, getCenteredPoint, getGeometryId, getGeometryType, length, serialize, sizeOf, spatiallyEquals, toString, transform, translate
-
Constructor Details
-
DefaultGeometry
public DefaultGeometry()
-
-
Method Details
-
spatiallyEquals
Tests if this geometry is equal to the argument, on a topological point of view
it means that they represent the same geometry, even if it is described differently (direction of the rings, order of the rings)
it does not remove additional points on lineString (3 points aligned), one must use smoother.removeExtraPoints() before in order to achieve that.- Specified by:
spatiallyEqualsin interfaceGeometry- Parameters:
geometry- the geometry to be tested.- Returns:
- whether both geometries are spatial equals.
-
asText
Returns this geometry encoded using the Well-Known Text (WKT) standard. -
clone
Clones this geometry.
-