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, 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, transform
area, 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, within
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity
getPrimitiveAt, getPrimitivesNumber
area, 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, within
contains, contains, contains, contains, getBounds, intersects
isEmpty, isEmpty, isEmpty, isEmptyQuietly
getJTS
public AbstractMultiPrimitive(int type, int subtype)
type
- subtype
- public void addPrimitive(Primitive primitive)
MultiPrimitive
addPrimitive
in interface MultiPrimitive
primitive
- The primitive to addpublic void addPrimitives(Aggregate aggregate)
addPrimitives
in interface MultiPrimitive
public void addPrimitives(Complex complex)
public void addPrimitives(Geometry geometry)
addPrimitives
in interface MultiPrimitive
protected 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