public class PreparedGeometryCollection extends AbstractGeometryCollection
PreparedGeometry subclasses.
Contains default implementations for methods, which simply delegate
to the equivalent Geometry methods.
This class may be used as a "no-op" class for Geometry types
which do not have a corresponding PreparedGeometry implementation.| Constructor and Description |
|---|
PreparedGeometryCollection(GeometryCollection geometryCollection) |
| 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 partIndex)
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.
|
List<Point> |
getRepresentativePoints()
Gets the list of representative points for this geometry.
|
<V extends Geometry> |
moveVertex(Point newPoint,
int... vertexId) |
Geometry |
prepare() |
appendVertex, clone, compareToSameClass, computeBoundingBox, copy, deleteVertex, doEquals, equalsExact, geometries, getArea, getBoundary, getBoundaryDimension, getDataType, getDimension, getGeometries, getGeometryComponents, getLength, getPoint, getPointWithin, getSegment, getToVertex, getVertex, getVertexCount, insertVertex, intersects, isEmpty, isEquivalentClass, move, 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, getUserData, getVertexIndex, hashCode, hasInvalidXyCoordinates, hasNonEmptyElements, hasNullElements, intersection, intersects, isAnyTargetComponentInTest, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, 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, getUserData, hashCode, hasInvalidXyCoordinates, intersection, intersects, isRectangle, isSimple, isValid, isWithinDistance, overlaps, relate, relate, setUserData, symDifference, touches, toWkt, union, union, withinpublic PreparedGeometryCollection(GeometryCollection geometryCollection)
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 class AbstractGeometryGeometry.public <V extends Geometry> List<V> getGeometries()
getGeometries in interface GeometrygetGeometries in class AbstractGeometrypublic <V extends Geometry> V getGeometry(int partIndex)
AbstractGeometryGeometry from a GeometryCollection
(or this, if the geometry is not a collection).getGeometry in interface GeometrygetGeometry in class AbstractGeometrypartIndex - 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 List<Point> getRepresentativePoints()
public <V extends Geometry> V moveVertex(Point newPoint, int... vertexId)
moveVertex in interface GeometrymoveVertex in class AbstractGeometryCollectionpublic Geometry prepare()
Copyright © 2015 Revolution Systems Inc.. All rights reserved.