public class MultiSurface extends MultiPolygon implements MultiCurvedGeometry<MultiPolygon>
MultiPolygon
that can host also CurvePolygon
and will linearize if
neededConstructor 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, reverse
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, getArea, getCoordinate, getCoordinates, getGeometryN, getLength, getNumGeometries, getNumPoints, isEmpty, normalize
buffer, 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, within
public MultiSurface(List<Polygon> components, GeometryFactory factory, double tolerance)
public MultiSurface(Polygon[] polygons, GeometryFactory factory, double tolerance)
public MultiPolygon linearize()
CurvedGeometry
linearize
in interface CurvedGeometry<MultiPolygon>
public MultiPolygon linearize(double tolerance)
CurvedGeometry
CircularArc.MAX_SEGMENTS_QUADRANT
linearize
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_QUADRANT
public String toCurvedText()
CurvedGeometry
Geometry.toText()
that will output the geometry as curved instead
of as lineartoCurvedText
in interface CurvedGeometry<MultiPolygon>
public double getTolerance()
CurvedGeometry
getTolerance
in interface CurvedGeometry<MultiPolygon>
public int getCoordinatesDimension()
CurvedGeometry
getCoordinatesDimension
in interface CurvedGeometry<MultiPolygon>
public MultiSurface copyInternal()
copyInternal
in class MultiPolygon
Copyright © 1996–2019 Geotools. All rights reserved.