public interface Aggregate extends Geometry, Iterable<Geometry>
This interface is equivalent to the GM_Aggregate specified in
ISO 19107.
The aggregates gather geometric objects. Since they will often use orientation
modification, the curve reference and surface references do not go directly to
the Curve
and Surface
, but are directed to OrientableCurve
and OrientableSurface
.
Most geometric objects are contained in features, and cannot be held in collections that are strong aggregations. For this reason, the collections described on this package are all weak aggregations, and shall use references to include geometric objects.
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Modifier and Type | Method and Description |
---|---|
Primitive |
getPrimitiveAt(int i)
Returns one of the
Primitive 's that is in
a concrete position. |
int |
getPrimitivesNumber()
Returns the number of
Primitive 's that composes
this multi geometry. |
Geometry |
intersection()
Returns a Primitive that is the intersection of all the geometries of the Aggregate.
|
Geometry |
union()
Returns a Primitive that is the union of all the geometries of the Aggregate.
|
area, buffer, centroid, cloneGeometry, closestPoints, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, flip, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getHandlers, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, offset, out, overlaps, perimeter, reProject, rotate, scale, snapTo, toLines, toPoints, toPolygons, touches, transform, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
int getPrimitivesNumber()
Primitive
's that composes
this multi geometry.Primitive
's that composes
this multi geometry.Primitive getPrimitiveAt(int i)
Primitive
's that is in
a concrete position.i
- Geometry position.Geometry union() throws GeometryOperationException, GeometryOperationNotSupportedException
GeometryOperationException
GeometryOperationNotSupportedException
Geometry intersection() throws GeometryOperationException, GeometryOperationNotSupportedException
GeometryOperationException
GeometryOperationNotSupportedException