Package org.geotools.geometry.jts
Class CurvedGeometries
Object
CurvedGeometries
Utility methods for curved geometries
- Author:
- Andrea Aime - GeoSolutions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CircularArcgetArc(CoordinateSequence cs, int startCoordinate) Builds a circular arc out of the specified coordinate sequencestatic CurvedGeometryFactorygetFactory(CurvedGeometry<?> curved) Extracts aCurvedGeometryFactoryfrom 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 booleanChecks if the specified geometry is a circlestatic booleanReturns true if the geometry is curved, or contains elements that are curvedstatic CircularRingtoCircle(CircularArc arc, GeometryFactory geometryFactory, double tolerance) Returns the circle containing this arc
-
Constructor Details
-
CurvedGeometries
public CurvedGeometries()
-
-
Method Details
-
isCurved
Returns true if the geometry is curved, or contains elements that are curved -
isCircle
Checks if the specified geometry is a circle -
getArc
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
Extracts aCurvedGeometryFactoryfrom 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
-