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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCoordinatesDimension()
Returns the dimension of the geometry without forcing access to the coordinate sequencedouble
getTolerance()
The default linearization toleranceT
linearize()
Linearizes the geometry using the built-in linearization toleranceT
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, seeCircularArc.MAX_SEGMENTS_QUADRANT
String
toCurvedText()
Parallel method toGeometry.toText()
that will output the geometry as curved instead of as linear
-
-
-
Method Detail
-
linearize
T linearize()
Linearizes the geometry using the built-in linearization tolerance
-
linearize
T 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, 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
-
-