public class MultiCurve2D extends BaseMultiPrimitive implements MultiCurve, MultiLine
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES, Geometry.ValidationStatus
geometries
geometryType, geomManager, id, projection
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W
Constructor and Description |
---|
MultiCurve2D(GeometryType geomType)
The constructor with the GeometryType like and argument
is used by the
GeometryType #create()
to create the geometry |
Modifier and Type | Method and Description |
---|---|
void |
addCurve(Curve curve)
Adds a new curve to the multi curve
|
void |
addPrimitive(Primitive primitive)
Adds a new primitive to the primitive
|
Geometry |
cloneGeometry()
Creates a clone of this geometry.
|
Curve |
getCurveAt(int index)
Gets the curve that is on a concrete position
inside the multi curve
|
MultiLine |
toLines()
Converts the geometry to be lines and makes with them a multiLine
|
MultiPoint |
toPoints()
Converts the geometry to be points and makes with them a multiPoint
|
MultiPolygon |
toPolygons()
Converts the geometry to be polygons and makes with them a multiPolygon
|
cloneFShape, contains, contains, contains, contains, ensureCapacity, fastIntersects, getBounds, getBounds2D, getDimension, getEnvelope, getGeneralPath, getGeometries, getHandlers, getInternalShape, getPathIterator, getPathIterator, getPrimitiveAt, getPrimitivesNumber, getSelectHandlers, getStretchingHandlers, intersection, intersects, intersects, isSimple, reProject, transform, union
area, buffer, centroid, closestPoints, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKB, convertToWKBForcingType, convertToWKT, convexHull, coveredBy, covers, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getInteriorPoint, getShape, getShape, getShapeType, getSRS, getType, getValidationStatus, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, isCCW, isValid, isWithinDistance, makeValid, move, overlaps, perimeter, rotate, scale, snapTo, toJTS, toString, touches, transform, union, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity
getPrimitiveAt, getPrimitivesNumber, intersection, union
area, buffer, canBeReprojected, canBeTransformed, centroid, 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, touches, transform, union, within
contains, contains, contains, contains, getBounds, intersects
compareTo
forEach, iterator, spliterator
public MultiCurve2D(GeometryType geomType)
GeometryType
#create()
to create the geometrytype
- The geometry typepublic Geometry cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
cloneGeometry
in class AbstractPrimitive
public void addCurve(Curve curve)
MultiCurve
addCurve
in interface MultiCurve
curve
- The curve to addpublic void addPrimitive(Primitive primitive)
MultiPrimitive
addPrimitive
in interface MultiPrimitive
addPrimitive
in class BaseMultiPrimitive
primitive
- The primitive to addpublic Curve getCurveAt(int index)
MultiCurve
getCurveAt
in interface MultiCurve
index
- The positionpublic MultiPolygon toPolygons() throws GeometryException
Geometry
toPolygons
in interface Geometry
GeometryException
public MultiPoint toPoints() throws GeometryException
Geometry
toPoints
in interface Geometry
GeometryException
public MultiLine toLines() throws GeometryException
Geometry
toLines
in interface Geometry
GeometryException