public class MultiPolygonImpl extends AbstractMultiPolygon implements MultiPolygon
Polygons.
As per the OGC SFS specification, the Polygons in a MultiPolygon may not overlap, and may only touch at single points. This allows the topological point-set semantics to be well-defined.
| Constructor and Description |
|---|
MultiPolygonImpl(GeometryFactory geometryFactory) |
MultiPolygonImpl(GeometryFactory geometryFactory,
Polygon... polygons) |
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
getBoundingBox()
Gets an
BoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry. |
<V extends Geometry> |
getGeometries() |
<V extends Geometry> |
getGeometry(int n)
Returns an element
Geometry from a GeometryCollection
(or this, if the geometry is not a collection). |
int |
getGeometryCount()
Returns the number of
Geometrys in a GeometryCollection
(or 1, if the geometry is not a collection). |
GeometryFactory |
getGeometryFactory()
Gets the geometryFactory which contains the context in which this geometry was created.
|
Object |
getUserData()
Gets the user data object for this geometry, if any.
|
boolean |
isEmpty()
Tests whether the set of points covered by this
Geometry is
empty. |
MultiPolygon |
prepare() |
void |
setUserData(Object userData)
A simple scheme for applications to add their own custom data to a Geometry.
|
copy, equalsExact, getBoundary, getBoundaryDimension, getDataType, getDimension, getPolygon, getPolygons, getSegment, getToVertex, getVertex, isEquivalentClass, moveVertex, normalize, reverse, segments, verticesappendVertex, clone, compareToSameClass, computeBoundingBox, deleteVertex, doEquals, geometries, getArea, getGeometries, getGeometryComponents, getLength, getPoint, getPointWithin, getVertexCount, insertVertex, intersects, move, toClockwise, toCounterClockwisebuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, createVertexId, crosses, difference, disjoint, distance, envelopeCovers, envelopesIntersect, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometryType, getInteriorPoint, getNonZeroGeometryFactory, getSrid, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setVertexIndex, symDifference, toString, touches, toWkt, union, union, withinfinalize, getClass, notify, notifyAll, wait, wait, waitgetPolygon, getPolygons, normalize, reversecloneappendVertex, buffer, buffer, buffer, compareTo, compareToSameClass, contains, containsProperly, convert, convert, convexHull, copy, coveredBy, covers, crosses, deleteVertex, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsExact, equalsNorm, equalsTopo, geometries, getArea, getAxisCount, getBoundary, getBoundaryDimension, getCentroid, getClassSortIndex, getCoordinateSystem, getDimension, getEnvelope, getGeometries, getGeometryComponents, getGeometryType, getInteriorPoint, getLength, getPoint, getPointWithin, getSegment, getSrid, getToVertex, getVertex, getVertexCount, hashCode, hasInvalidXyCoordinates, insertVertex, intersection, intersects, intersects, isRectangle, isSimple, isValid, isWithinDistance, move, moveVertex, overlaps, relate, relate, segments, symDifference, toClockwise, toCounterClockwise, touches, toWkt, union, union, vertices, withingetDataTypepublic MultiPolygonImpl(GeometryFactory geometryFactory)
public MultiPolygonImpl(GeometryFactory geometryFactory, Polygon... polygons)
public BoundingBox getBoundingBox()
AbstractGeometryBoundingBoxDoubleGf containing
the minimum and maximum x and y values in this Geometry.
If the geometry is empty, an empty BoundingBoxDoubleGf
is returned.
The returned object is a copy of the one maintained internally, to avoid aliasing issues. For best performance, clients which access this boundingBox frequently should cache the return value.
getBoundingBox in interface GeometrygetBoundingBox in interface PolygonalgetBoundingBox in class AbstractGeometryGeometry.public <V extends Geometry> List<V> getGeometries()
getGeometries in interface GeometrygetGeometries in class AbstractGeometrypublic <V extends Geometry> V getGeometry(int n)
AbstractGeometryGeometry from a GeometryCollection
(or this, if the geometry is not a collection).getGeometry in interface GeometrygetGeometry in class AbstractGeometryn - the index of the geometry elementpublic int getGeometryCount()
AbstractGeometryGeometrys in a GeometryCollection
(or 1, if the geometry is not a collection).getGeometryCount in interface GeometrygetGeometryCount in class AbstractGeometrypublic GeometryFactory getGeometryFactory()
GeometrygetGeometryFactory in interface GeometrygetGeometryFactory in class AbstractGeometrypublic Object getUserData()
getUserData in interface GeometrygetUserData in class AbstractGeometrynull if none setpublic boolean isEmpty()
AbstractGeometryGeometry is
empty.isEmpty in interface GeometryisEmpty in class AbstractGeometryCollectiontrue if this Geometry does not cover any pointspublic MultiPolygon prepare()
public void setUserData(Object userData)
Note that user data objects are not present in geometries created by construction methods.
setUserData in interface GeometrysetUserData in class AbstractGeometryuserData - an object, the semantics for which are defined by the
application using this GeometryCopyright © 2015 Revolution Systems Inc.. All rights reserved.