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, reverse
buffer, 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, within
public CurvePolygon(LinearRing shell, List<LinearRing> holes, GeometryFactory factory, double tolerance)
public CurvePolygon(LinearRing shell, LinearRing[] holes, GeometryFactory factory, double tolerance)
public Polygon linearize()
CurvedGeometry
linearize
in interface CurvedGeometry<Polygon>
public Polygon linearize(double tolerance)
CurvedGeometry
CircularArc.MAX_SEGMENTS_QUADRANT
linearize
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_QUADRANT
public String toCurvedText()
CurvedGeometry
Geometry.toText()
that will output the geometry as curved instead
of as lineartoCurvedText
in interface CurvedGeometry<Polygon>
public double getTolerance()
CurvedGeometry
getTolerance
in interface CurvedGeometry<Polygon>
public int getCoordinatesDimension()
CurvedGeometry
getCoordinatesDimension
in interface CurvedGeometry<Polygon>
public CurvePolygon copyInternal()
copyInternal
in class Polygon
Copyright © 1996–2019 Geotools. All rights reserved.