public abstract class AbstractMultiPrimitive extends AbstractAggregate implements MultiPrimitive
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatusloggerBEST, 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.
|
ensureCapacity, equals, getPrimitiveAt, getPrimitivesNumber, getShape, getShape, is3D, iterator, reProject, transformarea, 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, withinclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitensureCapacitygetPrimitiveAt, getPrimitivesNumberarea, 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, 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, withincontains, contains, contains, contains, getBounds, intersectscompareTogetJTSpublic AbstractMultiPrimitive(int type,
int subtype)
type - subtype - public void addPrimitive(Primitive primitive)
MultiPrimitiveaddPrimitive in interface MultiPrimitiveprimitive - The primitive to addprotected abstract Geometry fixPrimitive(Primitive primitive)
primitive - protected Geometry clonePrimitives(AbstractMultiPrimitive clone)
public Handler[] getHandlers(int type)
GeometrygetHandlers in interface Geometrytype - Type of handlers.public Geometry union() throws GeometryOperationException, GeometryOperationNotSupportedException
Aggregateunion in interface AggregateGeometryOperationExceptionGeometryOperationNotSupportedExceptionpublic Geometry intersection() throws GeometryOperationException, GeometryOperationNotSupportedException
Aggregateintersection in interface AggregateGeometryOperationExceptionGeometryOperationNotSupportedException