Class GeometryFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.GeometryFunctions
-
public class GeometryFunctions extends Object
Implementations for various geometry functions.- Author:
- Martin Davis
-
-
Field Summary
Fields Modifier and Type Field Description static String
lengthDescription
-
Constructor Summary
Constructors Constructor Description GeometryFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Geometry
addHoles(Geometry g, Geometry holeGeom)
static double
area(Geometry g)
static Geometry
copy(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
isEmpty(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)
static double
SRID(Geometry g)
-
-
-
Field Detail
-
lengthDescription
public static String lengthDescription
-
-
Method Detail
-
length
public static double length(Geometry g)
-
area
public static double area(Geometry g)
-
SRID
public static double SRID(Geometry g)
-
isEmpty
public static boolean isEmpty(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)
-
-