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 Type
    Method
    Description
    int
    Returns the dimension of the geometry without forcing access to the coordinate sequence
    double
    The default linearization tolerance
    Linearizes the geometry using the built-in linearization tolerance
    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
    Parallel method to Geometry.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

      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, see CircularArc.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, see CircularArc.MAX_SEGMENTS_QUADRANT
    • toCurvedText

      String toCurvedText()
      Parallel method to Geometry.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