public class MultiPolygon extends MultiSurface implements PolygonTypeGeometry
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 |
|---|
MultiPolygon() |
MultiPolygon(Polygon[] polygons) |
| Modifier and Type | Method and Description |
|---|---|
Point |
centroid()
Calculates centroid of this collection of polygons.
|
MultiPolygon |
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.
|
Polygon[] |
getPolygons() |
LinearRing[] |
getRings() |
Point |
pointOnSurface()
a Point on one of the polygon
|
PolygonGeometryIterator |
polygonIterator() |
Point[] |
serialize()
Returns this geometry as an array of Point.
|
void |
setGeometries(Geometry[] geometries) |
void |
setPolygons(Polygon[] polygons) |
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, sizeOf, spatiallyEquals, transform, translate, validateasText, spatiallyEqualsfinalize, getClass, notify, notifyAll, wait, wait, waitareaasText, boundary, createBounds, getBounds, length, sizeOf, spatiallyEquals, spatiallyEquals, transform, translatepublic MultiPolygon()
public MultiPolygon(Polygon[] polygons)
public MultiPolygon clone()
GeometryCollectionclone in interface Geometryclone in class GeometryCollectionpublic Point centroid()
centroid in interface PolygonTypeGeometrycentroid in class MultiSurfacepublic Point[] serialize()
GeometryCollectionserialize in interface Geometryserialize in class GeometryCollectionpublic Point pointOnSurface()
pointOnSurface in interface PolygonTypeGeometrypointOnSurface in class MultiSurfacepublic Polygon[] getPolygons()
public void setGeometries(Geometry[] geometries)
setGeometries in class GeometryCollectionpublic void setPolygons(Polygon[] polygons)
polygons - public PolygonGeometryIterator polygonIterator()
polygonIterator in interface PolygonTypeGeometrypublic java.lang.String toString()
Geometrypublic short getGeometryId()
GeometrygetGeometryId in interface Geometrypublic int getGeometryType()
GeometrygetGeometryType in interface Geometryfor more details.public Point getCenteredPoint()
GeometrygetCenteredPoint in interface GeometryGeometry.getCenteredPoint()public LinearRing[] getRings()