Class CurvedGeometries


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static CircularArc getArc​(CoordinateSequence cs, int startCoordinate)
      Builds a circular arc out of the specified coordinate sequence
      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
      static boolean isCircle​(Geometry geom)
      Checks if the specified geometry is a circle
      static boolean isCurved​(Geometry geometry)
      Returns true if the geometry is curved, or contains elements that are curved
      static CircularRing toCircle​(CircularArc arc, GeometryFactory geometryFactory, double tolerance)
      Returns the circle containing this arc
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CurvedGeometries

        public CurvedGeometries()
    • Method Detail

      • 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