Package org.geotools.geometry.jts
Interface CurvedGeometry<T extends Geometry>
- All Known Subinterfaces:
CompoundCurvedGeometry<T>
,CurvedRing
,MultiCurvedGeometry<T>
,SingleCurvedGeometry<T>
- All Known Implementing Classes:
CircularRing
,CircularString
,CompoundCurve
,CompoundRing
,CurvePolygon
,MultiCurve
,MultiSurface
public interface CurvedGeometry<T extends Geometry>
Provides linearization control for curved geometries
- Author:
- Andrea Aime - GeoSolutions
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the dimension of the geometry without forcing access to the coordinate sequencedouble
The default linearization toleranceLinearizes the geometry using the built-in linearization tolerancelinearize
(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, seeCircularArc.MAX_SEGMENTS_QUADRANT
Parallel method toGeometry.toText()
that will output the geometry as curved instead of as linear
-
Method Details
-
linearize
T linearize()Linearizes the geometry using the built-in linearization tolerance -
linearize
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, seeCircularArc.MAX_SEGMENTS_QUADRANT
- Parameters:
tolerance
- Linearization tolerance, should be zero or positive. When zero is used, the maximum number of allowed linearization points will be used, seeCircularArc.MAX_SEGMENTS_QUADRANT
-
toCurvedText
String toCurvedText()Parallel method toGeometry.toText()
that will output the geometry as curved instead of as linear -
getTolerance
double getTolerance()The default linearization tolerance -
getCoordinatesDimension
int getCoordinatesDimension()Returns the dimension of the geometry without forcing access to the coordinate sequence
-