public class GeometryCollectionImpl extends AbstractGeometryCollection
Geometrys of
arbitrary type and dimension.| Constructor and Description |
|---|
GeometryCollectionImpl(GeometryFactory geometryFactory) |
GeometryCollectionImpl(GeometryFactory geometryFactory,
Geometry[] geometries) |
| Modifier and Type | Method and Description |
|---|---|
GeometryCollectionImpl |
clone()
Creates and returns a full copy of this
GeometryCollection object. |
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. |
GeometryCollection |
prepare() |
void |
setUserData(Object userData)
A simple scheme for applications to add their own custom data to a Geometry.
|
appendVertex, compareToSameClass, computeBoundingBox, copy, deleteVertex, doEquals, equalsExact, geometries, getArea, getBoundary, getBoundaryDimension, getDataType, getDimension, getGeometries, getGeometryComponents, getLength, getPoint, getPointWithin, getSegment, getToVertex, getVertex, getVertexCount, insertVertex, intersects, isEquivalentClass, move, moveVertex, normalize, reverse, segments, toClockwise, toCounterClockwise, verticesbuffer, 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, waitbuffer, buffer, buffer, compareTo, contains, containsProperly, convert, convert, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equals, equalsExact, equalsNorm, equalsTopo, getAxisCount, getCentroid, getClassSortIndex, getCoordinateSystem, getEnvelope, getGeometryType, getInteriorPoint, getSrid, hashCode, hasInvalidXyCoordinates, intersection, intersects, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, symDifference, touches, toWkt, union, union, withinpublic GeometryCollectionImpl(GeometryFactory geometryFactory)
public GeometryCollectionImpl(GeometryFactory geometryFactory, Geometry[] geometries)
geometries - the Geometrys for this GeometryCollection,
or null or an empty array to create the empty
geometry. Elements may be empty Geometrys,
but not nulls.public GeometryCollectionImpl clone()
GeometryCollection object.
(including all coordinates contained by it).clone in interface Geometryclone in interface GeometryCollectionclone in class AbstractGeometryCollectionpublic 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 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 GeometryCollection 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.