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 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
Checks if the specified geometry is a circlestatic boolean
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
-
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 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
-