org.geotools.graph.util.geom
Class GeometryUtil
java.lang.Object
org.geotools.graph.util.geom.GeometryUtil
- public class GeometryUtil
- extends java.lang.Object
Method Summary |
static double |
angleBetween(com.vividsolutions.jts.geom.LineSegment l1,
com.vividsolutions.jts.geom.LineSegment l2,
double tol)
|
static double |
angleBetween(com.vividsolutions.jts.geom.LineString l1,
com.vividsolutions.jts.geom.LineString l2,
double tol)
|
static double |
averageDistance(com.vividsolutions.jts.geom.LineString to,
java.util.Collection from)
|
static com.vividsolutions.jts.geom.PrecisionModel |
basicPrecisionModel()
|
static double |
distance(com.vividsolutions.jts.geom.Coordinate[] c,
int i,
int j)
|
static double |
dx(com.vividsolutions.jts.geom.LineString ls)
|
static double |
dy(com.vividsolutions.jts.geom.LineString ls)
|
static com.vividsolutions.jts.geom.GeometryFactory |
gf()
|
static boolean |
isEqual(com.vividsolutions.jts.geom.Coordinate[] c1,
com.vividsolutions.jts.geom.Coordinate[] c2)
|
static boolean |
isEqual(com.vividsolutions.jts.geom.Coordinate[] c1,
com.vividsolutions.jts.geom.Coordinate[] c2,
boolean reverse)
|
static com.vividsolutions.jts.geom.LineString |
joinLinestrings(com.vividsolutions.jts.geom.LineString l1,
com.vividsolutions.jts.geom.LineString l2)
|
static com.vividsolutions.jts.geom.LineString |
normalizeLinestring(com.vividsolutions.jts.geom.LineString line,
double sample)
|
static com.vividsolutions.jts.geom.PrecisionModel |
pm()
|
static com.vividsolutions.jts.geom.Coordinate[] |
reverseCoordinates(com.vividsolutions.jts.geom.Coordinate[] c,
boolean modify)
|
static com.vividsolutions.jts.geom.Geometry |
reverseGeometry(com.vividsolutions.jts.geom.Geometry geom,
boolean modify)
|
static com.vividsolutions.jts.geom.LineString |
simplifyLineString(com.vividsolutions.jts.geom.LineString line)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeometryUtil
public GeometryUtil()
isEqual
public static boolean isEqual(com.vividsolutions.jts.geom.Coordinate[] c1,
com.vividsolutions.jts.geom.Coordinate[] c2)
isEqual
public static boolean isEqual(com.vividsolutions.jts.geom.Coordinate[] c1,
com.vividsolutions.jts.geom.Coordinate[] c2,
boolean reverse)
joinLinestrings
public static com.vividsolutions.jts.geom.LineString joinLinestrings(com.vividsolutions.jts.geom.LineString l1,
com.vividsolutions.jts.geom.LineString l2)
angleBetween
public static double angleBetween(com.vividsolutions.jts.geom.LineSegment l1,
com.vividsolutions.jts.geom.LineSegment l2,
double tol)
angleBetween
public static double angleBetween(com.vividsolutions.jts.geom.LineString l1,
com.vividsolutions.jts.geom.LineString l2,
double tol)
dx
public static double dx(com.vividsolutions.jts.geom.LineString ls)
dy
public static double dy(com.vividsolutions.jts.geom.LineString ls)
reverseGeometry
public static com.vividsolutions.jts.geom.Geometry reverseGeometry(com.vividsolutions.jts.geom.Geometry geom,
boolean modify)
reverseCoordinates
public static com.vividsolutions.jts.geom.Coordinate[] reverseCoordinates(com.vividsolutions.jts.geom.Coordinate[] c,
boolean modify)
averageDistance
public static double averageDistance(com.vividsolutions.jts.geom.LineString to,
java.util.Collection from)
simplifyLineString
public static com.vividsolutions.jts.geom.LineString simplifyLineString(com.vividsolutions.jts.geom.LineString line)
basicPrecisionModel
public static com.vividsolutions.jts.geom.PrecisionModel basicPrecisionModel()
gf
public static com.vividsolutions.jts.geom.GeometryFactory gf()
pm
public static com.vividsolutions.jts.geom.PrecisionModel pm()
normalizeLinestring
public static com.vividsolutions.jts.geom.LineString normalizeLinestring(com.vividsolutions.jts.geom.LineString line,
double sample)
distance
public static double distance(com.vividsolutions.jts.geom.Coordinate[] c,
int i,
int j)
Copyright © GeoTools. All Rights Reserved.