public class CurvedGeometries extends Object
Constructor and Description |
---|
CurvedGeometries() |
Modifier and Type | Method and 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
|
public static boolean isCurved(Geometry geometry)
geometry
- public static boolean isCircle(Geometry geom)
geom
- public static CircularArc getArc(CoordinateSequence cs, int startCoordinate)
cs
- startCoordinate
- public static CircularRing toCircle(CircularArc arc, GeometryFactory geometryFactory, double tolerance)
public static CurvedGeometryFactory getFactory(CurvedGeometry<?> curved)
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
onecurved
- Copyright © 1996–2019 Geotools. All rights reserved.