Package org.geotools.geometry.jts
Class CurvedGeometries
- Object
-
- CurvedGeometries
-
public class CurvedGeometries extends Object
Utility methods for curved geometries- Author:
- Andrea Aime - GeoSolutions
-
-
Constructor Summary
Constructors Constructor Description CurvedGeometries()
-
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 sequencestatic CurvedGeometryFactory
getFactory(CurvedGeometry<?> curved)
Extracts aCurvedGeometryFactory
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 onestatic boolean
isCircle(Geometry geom)
Checks if the specified geometry is a circlestatic boolean
isCurved(Geometry geometry)
Returns true if the geometry is curved, or contains elements that are curvedstatic CircularRing
toCircle(CircularArc arc, GeometryFactory geometryFactory, double tolerance)
Returns the circle containing this arc
-
-
-
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
-
getFactory
public static CurvedGeometryFactory getFactory(CurvedGeometry<?> curved)
Extracts aCurvedGeometryFactory
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
-
-