public class MultiSurface extends MultiPolygon implements MultiCurvedGeometry<MultiPolygon>
MultiPolygon that can host also CurvePolygon and will linearize if
needed| Constructor and Description |
|---|
MultiSurface(List<Polygon> components,
GeometryFactory factory,
double tolerance) |
MultiSurface(Polygon[] polygons,
GeometryFactory factory,
double tolerance) |
| Modifier and Type | Method and Description |
|---|---|
MultiSurface |
copyInternal() |
int |
getCoordinatesDimension()
Returns the dimension of the geometry without forcing access to the coordinate sequence
|
double |
getTolerance()
The default linearization tolerance
|
MultiPolygon |
linearize()
Linearizes the geometry using the built-in linearization tolerance
|
MultiPolygon |
linearize(double tolerance)
Linearizes the geometry using the provided tolerance, the result is guaranteed to be less
than tolerance away from the curved geometry unless the number of points needed to linearize
the geometry exceeds the build-in per quadrant maximum, see
CircularArc.MAX_SEGMENTS_QUADRANT |
String |
toCurvedText()
Parallel method to
Geometry.toText() that will output the geometry as curved instead
of as linear |
equalsExact, getBoundary, getBoundaryDimension, getDimension, getGeometryType, getSortIndex, reverseapply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, getArea, getCoordinate, getCoordinates, getGeometryN, getLength, getNumGeometries, getNumPoints, isEmpty, normalizebuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getInteriorPoint, getPrecisionModel, getSRID, getUserData, hashCode, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, union, withinpublic MultiSurface(List<Polygon> components, GeometryFactory factory, double tolerance)
public MultiSurface(Polygon[] polygons,
GeometryFactory factory,
double tolerance)
public MultiPolygon linearize()
CurvedGeometrylinearize in interface CurvedGeometry<MultiPolygon>public MultiPolygon linearize(double tolerance)
CurvedGeometryCircularArc.MAX_SEGMENTS_QUADRANTlinearize in interface CurvedGeometry<MultiPolygon>tolerance - Linearization tolerance, should be zero or positive. When zero is used, the
maximum number of allowed linearization points will be used, see CircularArc.MAX_SEGMENTS_QUADRANTpublic String toCurvedText()
CurvedGeometryGeometry.toText() that will output the geometry as curved instead
of as lineartoCurvedText in interface CurvedGeometry<MultiPolygon>public double getTolerance()
CurvedGeometrygetTolerance in interface CurvedGeometry<MultiPolygon>public int getCoordinatesDimension()
CurvedGeometrygetCoordinatesDimension in interface CurvedGeometry<MultiPolygon>public MultiSurface copyInternal()
copyInternal in class MultiPolygonCopyright © 1996–2019 Geotools. All rights reserved.