public class CurvePolygon extends Polygon implements CurvedGeometry<Polygon>
| Constructor and Description |
|---|
CurvePolygon(LinearRing shell,
LinearRing[] holes,
GeometryFactory factory,
double tolerance) |
CurvePolygon(LinearRing shell,
List<LinearRing> holes,
GeometryFactory factory,
double tolerance) |
| Modifier and Type | Method and Description |
|---|---|
CurvePolygon |
copyInternal() |
int |
getCoordinatesDimension()
Returns the dimension of the geometry without forcing access to the coordinate sequence
|
double |
getTolerance()
The default linearization tolerance
|
Polygon |
linearize()
Linearizes the geometry using the built-in linearization tolerance
|
Polygon |
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 |
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, convexHull, equalsExact, getArea, getBoundary, getBoundaryDimension, getCoordinate, getCoordinates, getDimension, getExteriorRing, getGeometryType, getInteriorRingN, getLength, getNumInteriorRing, getNumPoints, getSortIndex, isEmpty, isRectangle, normalize, reversebuffer, buffer, buffer, checkNotGeometryCollection, compare, compareTo, compareTo, contains, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getNumGeometries, getPrecisionModel, getSRID, getUserData, hashCode, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, union, withinpublic CurvePolygon(LinearRing shell,
List<LinearRing> holes,
GeometryFactory factory,
double tolerance)
public CurvePolygon(LinearRing shell,
LinearRing[] holes,
GeometryFactory factory,
double tolerance)
public Polygon linearize()
CurvedGeometrylinearize in interface CurvedGeometry<Polygon>public Polygon linearize(double tolerance)
CurvedGeometryCircularArc.MAX_SEGMENTS_QUADRANTlinearize in interface CurvedGeometry<Polygon>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<Polygon>public double getTolerance()
CurvedGeometrygetTolerance in interface CurvedGeometry<Polygon>public int getCoordinatesDimension()
CurvedGeometrygetCoordinatesDimension in interface CurvedGeometry<Polygon>public CurvePolygon copyInternal()
copyInternal in class PolygonCopyright © 1996–2019 Geotools. All rights reserved.