public class MultiSurface2D extends BaseMultiPrimitive implements MultiSurface, MultiPolygon
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 |
---|
MultiSurface2D(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 |
addPrimitive(Primitive primitive)
Adds a new primitive to the primitive
|
void |
addSurface(Surface surface)
Adds a new surface to the multi surface
|
Geometry |
cloneGeometry()
Creates a clone of this geometry.
|
Surface |
getSurfaceAt(int index)
Gets the surface that is on a concrete position
inside the multi surface
|
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
|
Geometry |
union(Geometry other) |
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, within
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity
getPrimitiveAt, getPrimitivesNumber, intersection, union
area, buffer, 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, within
contains, contains, contains, contains, getBounds, intersects
compareTo
public MultiSurface2D(GeometryType geomType)
GeometryType
#create()
to create the geometrytype
- The geometry typepublic Geometry cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
cloneGeometry
in class AbstractPrimitive
public void addSurface(Surface surface)
MultiSurface
addSurface
in interface MultiSurface
surface
- The surface to addpublic void addPrimitive(Primitive primitive)
MultiPrimitive
addPrimitive
in interface MultiPrimitive
addPrimitive
in class BaseMultiPrimitive
primitive
- The primitive to addpublic Surface getSurfaceAt(int index)
MultiSurface
getSurfaceAt
in interface MultiSurface
index
- The positionpublic Geometry union(Geometry other) throws GeometryOperationNotSupportedException, GeometryOperationException
union
in interface Geometry
union
in class AbstractPrimitive
GeometryOperationNotSupportedException
GeometryOperationException
public 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