Class GeometryFunctions
- java.lang.Object
-
- org.locationtech.jtstest.function.GeometryFunctions
-
public class GeometryFunctions extends java.lang.ObjectImplementations for various geometry functions.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringlengthDescription
-
Constructor Summary
Constructors Constructor Description GeometryFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublearea(Geometry g)static GeometryconvertToPolygon(Geometry g)static Geometryenvelope(Geometry g)static GeometrygetCoordinates(Geometry g)static GeometrygetGeometryN(Geometry g, int i)static GeometrygetPolygonHoleN(Geometry g, int i)static GeometrygetPolygonHoles(Geometry geom)static GeometrygetPolygonShell(Geometry g)static booleanisClosed(Geometry g)static booleanisRectangle(Geometry g)static booleanisSimple(Geometry g)static booleanisValid(Geometry g)static doublelength(Geometry g)static Geometrynormalize(Geometry g)static Geometryreverse(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)
-
-