public class MultiPolygon extends GeometryCollection
GeometryCollection that contains only Polygons.geometries, points| Constructor and Description |
|---|
MultiPolygon(Polygon[] polygons)
Constructs a
MultiPolygon from the specified array of Polygons. |
| Modifier and Type | Method and Description |
|---|---|
double |
area()
Returns the sum of the areas of all element
Polygons. |
Point |
centroid()
Returns the mathematical centroid for this
MultiPolygon. |
static MultiPolygon |
createEmpty()
Constructs an empty
MultiPolygon. |
Polygon |
getGeometryN(int num)
Returns the
Geometry element at the specified (zero-based) position in this GeometryCollection. |
GeometryType |
getGeometryType()
Returns the type of this
Geometry. |
Point |
pointOnSurface()
Returns a
Point guaranteed to be on this MultiPolygon. |
accept, getDimension, getNumGeometries, getPoints, iteratorasBinary, asText, buffer, collectPointSets, contains, convexHull, crosses, difference, disjoint, distance, equals, getBoundary, getCoordinateDimension, getCrsId, getCrsId, getDimensionalFlag, getEnvelope, getGeometryOperations, getGeometryOperations, getNumPoints, getPointN, getSRID, hashCode, intersection, intersects, is3D, isEmpty, isMeasured, isSimple, locateAlong, locateBetween, overlaps, relate, symDifference, toString, touches, union, withinclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic MultiPolygon(Polygon[] polygons)
MultiPolygon from the specified array of Polygons.polygons - the element Polygons for the constructed MultiPolygonpublic static MultiPolygon createEmpty()
MultiPolygon.MultiPolygon.public Polygon getGeometryN(int num)
GeometryCollectionGeometry element at the specified (zero-based) position in this GeometryCollection.getGeometryN in class GeometryCollectionnum - the position in the collection of the requested GeometryGeometry at the position specified by the num parameter.public double area()
Polygons.Polygons.public Point centroid()
MultiPolygon.MultiPolygon.public Point pointOnSurface()
Point guaranteed to be on this MultiPolygon.Point guaranteed to be on this MultiPolygon.public GeometryType getGeometryType()
GeometryGeometry.getGeometryType in class GeometryCollectionGeometryType of this instance.Copyright © 2015 geolatte.org. All rights reserved.