Class CurvedGeometries

Object
CurvedGeometries

public class CurvedGeometries extends Object
Utility methods for curved geometries
Author:
Andrea Aime - GeoSolutions
  • Constructor Details

    • CurvedGeometries

      public CurvedGeometries()
  • Method Details

    • isCurved

      public static boolean isCurved(Geometry geometry)
      Returns true if the geometry is curved, or contains elements that are curved
    • isCircle

      public static boolean isCircle(Geometry geom)
      Checks if the specified geometry is a circle
    • getArc

      public static CircularArc getArc(CoordinateSequence cs, int startCoordinate)
      Builds a circular arc out of the specified coordinate sequence
    • toCircle

      public static CircularRing toCircle(CircularArc arc, GeometryFactory geometryFactory, double tolerance)
      Returns the circle containing this arc
    • getFactory

      public static CurvedGeometryFactory getFactory(CurvedGeometry<?> curved)
      Extracts a CurvedGeometryFactory from the provided geometry, either by just returning the one that is held by the geometry, if consistent with its tolerance, or by creating a new one