public class Complex extends GeometryCollection
bounds, geometriesGEOMETRY_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 and Description |
|---|
Complex()
Constructs an empty instance of Complex.
|
Complex(Geometry[] geometries)
Constructs a Complex object containing all the geometries
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGeometry(Geometry geometry) |
Point |
centroid(java.util.List<Point> validCentredPoints) |
Complex |
clone()
Clones this geometry.
|
Point |
getCenteredPoint()
This method returns a point that is typically centered on the geometry.
|
short |
getGeometryId()
Returns the geometry class id.
|
int |
getGeometryType()
Returns the geometry type for this geometry.
|
void |
removeGeometry(Geometry geometry) |
void |
setGeometries(Geometry[] geometries) |
java.lang.String |
toString()
Returns informations about the current geometry.
|
area, boundary, createBounds, equals, fit, geometryN, getBounds, getGeometries, getGeometryCount, hashCode, keepLineString, keepLineString, keepPoint, keepPoint, keepPolygon, keepPolygon, length, numGeometries, serialize, sizeOf, spatiallyEquals, transform, translate, validateasText, spatiallyEqualspublic Complex()
public Complex(Geometry[] geometries)
geometries - public void addGeometry(Geometry geometry)
public void setGeometries(Geometry[] geometries)
setGeometries in class GeometryCollectionpublic void removeGeometry(Geometry geometry)
public java.lang.String toString()
Geometrypublic Complex clone()
clone in interface Geometryclone in class GeometryCollectionpublic short getGeometryId()
Geometrypublic int getGeometryType()
Geometryfor more details.public Point getCenteredPoint()
GeometryGeometry.getCenteredPoint()