public class Complex extends GeometryCollection
bounds, geometries
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 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, validate
asText, spatiallyEquals
public Complex()
public Complex(Geometry[] geometries)
geometries
- public void addGeometry(Geometry geometry)
public void setGeometries(Geometry[] geometries)
setGeometries
in class GeometryCollection
public void removeGeometry(Geometry geometry)
public java.lang.String toString()
Geometry
public Complex clone()
clone
in interface Geometry
clone
in class GeometryCollection
public short getGeometryId()
Geometry
public int getGeometryType()
Geometry
for more details.
public Point getCenteredPoint()
Geometry
Geometry.getCenteredPoint()