public class MultiCurve extends MultiLineString implements MultiCurvedGeometry<MultiLineString>
Constructor and Description |
---|
MultiCurve(List<LineString> components,
GeometryFactory factory,
double tolerance) |
Modifier and Type | Method and Description |
---|---|
int |
getCoordinatesDimension()
Returns the dimension of the geometry without forcing access to the coordinate sequence
|
double |
getTolerance()
The default linearization tolerance
|
MultiLineString |
linearize()
Linearizes the geometry using the built-in linearization tolerance
|
MultiLineString |
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 |
copyInternal, equalsExact, getBoundary, getBoundaryDimension, getDimension, getGeometryType, getSortIndex, isClosed, 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 MultiCurve(List<LineString> components, GeometryFactory factory, double tolerance)
public MultiLineString linearize()
CurvedGeometry
linearize
in interface CurvedGeometry<MultiLineString>
public MultiLineString linearize(double tolerance)
CurvedGeometry
CircularArc.MAX_SEGMENTS_QUADRANT
linearize
in interface CurvedGeometry<MultiLineString>
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<MultiLineString>
public double getTolerance()
CurvedGeometry
getTolerance
in interface CurvedGeometry<MultiLineString>
public int getCoordinatesDimension()
CurvedGeometry
getCoordinatesDimension
in interface CurvedGeometry<MultiLineString>
Copyright © 1996–2019 Geotools. All rights reserved.