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, JOIN_STYLE_BEVEL, JOIN_STYLE_MITRE, JOIN_STYLE_ROUND, 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
|
void |
addPrimitives(Aggregate aggregate) |
void |
addPrimitives(Complex complex) |
void |
addPrimitives(Geometry geometry) |
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, get, getPrimitiveAt, getPrimitivesNumber, getShape, getShape, is3D, isEmpty, iterator, reProject, size, transformarea, boundary, buffer, buffer, centroid, clone, closestPoints, compareTo, contains, contains, contains, contains, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, fastIntersects, fix, force2DM, force3D, force3DM, forceSubtype, getBounds, getBounds2D, getEnvelope, getGeometryType, getInteriorPoint, getInternalShape, getManager, getProjection, getType, getValidationStatus, intersection, intersects, intersects, intersects, invokeOperation, invokeOperation, isCCW, isSimple, isValid, isWithinDistance, makeValid, move, notifyDeprecated, out, overlaps, perimeter, rotate, scale, setGeometryType, setProjection, setProjection, setProjectionIffNull, snapTo, toString, touches, union, withinfinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitensureCapacitygetPrimitiveAt, getPrimitivesNumberarea, boundary, buffer, buffer, canBeReprojected, canBeTransformed, centroid, clone, cloneGeometry, closestPoints, contains, convertTo, convertToEWKB, convertToEWKB, convertToEWKBForcingType, convertToGeoJson, convertToHexEWKB, convertToHexEWKBQuietly, convertToHexWKB, convertToHexWKBQuietly, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKBQuietly, convertToWKT, convertToWKTQuietly, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, ensureOrientation, equals, fastIntersects, fix, flip, force2D, forceSubtype, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometryType, getInteriorPoint, getInternalShape, getPathIterator, getPathIterator, getProjection, getShape, getShape, getType, getValidationStatus, intersection, intersects, intersects, invokeOperation, invokeOperation, isCCW, isEmpty, isSimple, isValid, isWithinDistance, makeValid, move, offset, offset, out, overlaps, perimeter, reProject, rotate, scale, setProjection, setProjection, setProjectionIffNull, snapTo, toLines, toPoints, toPolygons, touches, transform, union, withincontains, contains, contains, contains, getBounds, intersectsisEmpty, isEmpty, isEmpty, isEmptyQuietlygetJTSpublic AbstractMultiPrimitive(int type,
int subtype)
type - subtype - public void addPrimitive(Primitive primitive)
MultiPrimitiveaddPrimitive in interface MultiPrimitiveprimitive - The primitive to addpublic void addPrimitives(Aggregate aggregate)
addPrimitives in interface MultiPrimitivepublic void addPrimitives(Complex complex)
public void addPrimitives(Geometry geometry)
addPrimitives in interface MultiPrimitiveprotected 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