Class GeometryFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.GeometryFunctions
-
public class GeometryFunctions extends java.lang.Object
Implementations for various geometry functions.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
lengthDescription
-
Constructor Summary
Constructors Constructor Description GeometryFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
area(Geometry g)
static Geometry
convertToPolygon(Geometry g)
static Geometry
envelope(Geometry g)
static Geometry
getCoordinates(Geometry g)
static Geometry
getGeometryN(Geometry g, int i)
static Geometry
getPolygonHoleN(Geometry g, int i)
static Geometry
getPolygonHoles(Geometry geom)
static Geometry
getPolygonShell(Geometry g)
static boolean
isClosed(Geometry g)
static boolean
isRectangle(Geometry g)
static boolean
isSimple(Geometry g)
static boolean
isValid(Geometry g)
static double
length(Geometry g)
static Geometry
normalize(Geometry g)
static Geometry
reverse(Geometry g)
-
-
-
Method Detail
-
length
public static double length(Geometry g)
-
area
public static double area(Geometry g)
-
isSimple
public static boolean isSimple(Geometry g)
-
isValid
public static boolean isValid(Geometry g)
-
isRectangle
public static boolean isRectangle(Geometry g)
-
isClosed
public static boolean isClosed(Geometry g)
-
-