Package org.geotools.graph.util.geom
Class GeometryUtil
- Object
-
- GeometryUtil
-
public class GeometryUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description GeometryUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
angleBetween(LineSegment l1, LineSegment l2, double tol)
static double
angleBetween(LineString l1, LineString l2, double tol)
static double
averageDistance(LineString to, Collection from)
static PrecisionModel
basicPrecisionModel()
static double
distance(Coordinate[] c, int i, int j)
static double
dx(LineString ls)
static double
dy(LineString ls)
static GeometryFactory
gf()
static boolean
isEqual(Coordinate[] c1, Coordinate[] c2)
static boolean
isEqual(Coordinate[] c1, Coordinate[] c2, boolean reverse)
static LineString
joinLinestrings(LineString l1, LineString l2)
static LineString
normalizeLinestring(LineString line, double sample)
static PrecisionModel
pm()
static Coordinate[]
reverseCoordinates(Coordinate[] c, boolean modify)
static Geometry
reverseGeometry(Geometry geom, boolean modify)
static LineString
simplifyLineString(LineString line)
-
-
-
Method Detail
-
isEqual
public static boolean isEqual(Coordinate[] c1, Coordinate[] c2)
-
isEqual
public static boolean isEqual(Coordinate[] c1, Coordinate[] c2, boolean reverse)
-
joinLinestrings
public static LineString joinLinestrings(LineString l1, LineString l2)
-
angleBetween
public static double angleBetween(LineSegment l1, LineSegment l2, double tol)
-
angleBetween
public static double angleBetween(LineString l1, LineString l2, double tol)
-
dx
public static double dx(LineString ls)
-
dy
public static double dy(LineString ls)
-
reverseCoordinates
public static Coordinate[] reverseCoordinates(Coordinate[] c, boolean modify)
-
averageDistance
public static double averageDistance(LineString to, Collection from)
-
simplifyLineString
public static LineString simplifyLineString(LineString line)
-
basicPrecisionModel
public static PrecisionModel basicPrecisionModel()
-
gf
public static GeometryFactory gf()
-
pm
public static PrecisionModel pm()
-
normalizeLinestring
public static LineString normalizeLinestring(LineString line, double sample)
-
distance
public static double distance(Coordinate[] c, int i, int j)
-
-