public class MultiPolygon extends MultiSurface implements PolygonTypeGeometry
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 |
---|
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, validate
asText, spatiallyEquals
finalize, getClass, notify, notifyAll, wait, wait, wait
area
asText, boundary, createBounds, getBounds, length, sizeOf, spatiallyEquals, spatiallyEquals, transform, translate
public MultiPolygon()
public MultiPolygon(Polygon[] polygons)
public MultiPolygon clone()
GeometryCollection
clone
in interface Geometry
clone
in class GeometryCollection
public Point centroid()
centroid
in interface PolygonTypeGeometry
centroid
in class MultiSurface
public Point[] serialize()
GeometryCollection
serialize
in interface Geometry
serialize
in class GeometryCollection
public Point pointOnSurface()
pointOnSurface
in interface PolygonTypeGeometry
pointOnSurface
in class MultiSurface
public Polygon[] getPolygons()
public void setGeometries(Geometry[] geometries)
setGeometries
in class GeometryCollection
public void setPolygons(Polygon[] polygons)
polygons
- public PolygonGeometryIterator polygonIterator()
polygonIterator
in interface PolygonTypeGeometry
public java.lang.String toString()
Geometry
public short getGeometryId()
Geometry
getGeometryId
in interface Geometry
public int getGeometryType()
Geometry
getGeometryType
in interface Geometry
for more details.
public Point getCenteredPoint()
Geometry
getCenteredPoint
in interface Geometry
Geometry.getCenteredPoint()
public LinearRing[] getRings()