public abstract class AbstractMultiPrimitive extends AbstractAggregate implements MultiPrimitive
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
logger
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Constructor and Description |
---|
AbstractMultiPrimitive(int type,
int subtype) |
Modifier and Type | Method and Description |
---|---|
void |
addPrimitive(Primitive primitive)
Adds a new primitive to the primitive
|
protected Geometry |
clonePrimitives(AbstractMultiPrimitive clone) |
protected abstract Geometry |
fixPrimitive(Primitive primitive) |
Handler[] |
getHandlers(int type)
It returns the handlers of the geometry, these they can be of two types
is straightening and of selection.
|
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.
|
canBeReprojected, canBeTransformed, ensureCapacity, equals, getPrimitiveAt, getPrimitivesNumber, getShape, getShape, is3D, iterator, reProject, transform
area, buffer, centroid, closestPoints, compareTo, contains, contains, contains, contains, contains, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, snapTo, toString, touches, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity
getPrimitiveAt, getPrimitivesNumber
area, buffer, canBeReprojected, canBeTransformed, 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, 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
forEach, iterator, spliterator
getJTS
public AbstractMultiPrimitive(int type, int subtype)
type
- subtype
- public void addPrimitive(Primitive primitive)
MultiPrimitive
addPrimitive
in interface MultiPrimitive
primitive
- The primitive to addprotected abstract Geometry fixPrimitive(Primitive primitive)
primitive
- protected Geometry clonePrimitives(AbstractMultiPrimitive clone)
public Handler[] getHandlers(int type)
Geometry
getHandlers
in interface Geometry
type
- Type of handlers.public Geometry union() throws GeometryOperationException, GeometryOperationNotSupportedException
Aggregate
union
in interface Aggregate
GeometryOperationException
GeometryOperationNotSupportedException
public Geometry intersection() throws GeometryOperationException, GeometryOperationNotSupportedException
Aggregate
intersection
in interface Aggregate
GeometryOperationException
GeometryOperationNotSupportedException