public class CoordinateArrays
extends java.lang.Object
| Constructor and Description | 
|---|
CoordinateArrays()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addCoordinateArrays(com.vividsolutions.jts.geom.Geometry g,
                   boolean orientPolygons,
                   java.util.List coordArrayList)
Extract the coordinate arrays for a geometry into a List. 
 | 
static com.vividsolutions.jts.geom.Coordinate[] | 
ensureOrientation(com.vividsolutions.jts.geom.Coordinate[] coord,
                 int desiredOrientation)
Sets the orientation of an array of coordinates. 
 | 
static boolean | 
equals(com.vividsolutions.jts.geom.Coordinate[] coord1,
      com.vividsolutions.jts.geom.Coordinate[] coord2)  | 
static java.util.List | 
fromCoordinateArrays(java.util.List coordArrays,
                    com.vividsolutions.jts.geom.GeometryFactory fact)
Converts a collection of coordinate arrays to a collection of geometries. 
 | 
static void | 
reverse(com.vividsolutions.jts.geom.Coordinate[] coord)  | 
static com.vividsolutions.jts.geom.Coordinate[] | 
toCoordinateArray(java.util.List coordList)  | 
static java.util.List | 
toCoordinateArrays(com.vividsolutions.jts.geom.Geometry g,
                  boolean orientPolygons)
Extract the coordinate arrays for a geometry. 
 | 
static com.vividsolutions.jts.geom.Geometry | 
toLineOrPoint(com.vividsolutions.jts.geom.Coordinate[] coords,
             com.vividsolutions.jts.geom.GeometryFactory fact)
Converts an array of coordinates to a line or point, as appropriate. 
 | 
public static com.vividsolutions.jts.geom.Coordinate[] toCoordinateArray(java.util.List coordList)
public static void reverse(com.vividsolutions.jts.geom.Coordinate[] coord)
public static com.vividsolutions.jts.geom.Geometry toLineOrPoint(com.vividsolutions.jts.geom.Coordinate[] coords,
                                                 com.vividsolutions.jts.geom.GeometryFactory fact)
coords - the coordinates of a line or pointfact - a factory used to create the Geometrypublic static boolean equals(com.vividsolutions.jts.geom.Coordinate[] coord1,
             com.vividsolutions.jts.geom.Coordinate[] coord2)
public static java.util.List fromCoordinateArrays(java.util.List coordArrays,
                                  com.vividsolutions.jts.geom.GeometryFactory fact)
coordArrays - a collection of Coordinate[]fact - a factory used to create the Geometriespublic static void addCoordinateArrays(com.vividsolutions.jts.geom.Geometry g,
                       boolean orientPolygons,
                       java.util.List coordArrayList)
g - the Geometry to extract fromcoordArrayList - the List to add the coordinate arrays toorientPolygons - whether or not the arrays in the List should be
 oriented (clockwise for the shell, counterclockwise for the holes)public static com.vividsolutions.jts.geom.Coordinate[] ensureOrientation(com.vividsolutions.jts.geom.Coordinate[] coord,
                                                         int desiredOrientation)
coord - the coordinates to inspectdesiredOrientation - CGAlgorithms.CLOCKWISE or CGAlgorithms.COUNTERCLOCKWISEpublic static java.util.List toCoordinateArrays(com.vividsolutions.jts.geom.Geometry g,
                                boolean orientPolygons)
g - the Geometry to extract fromorientPolygons - ensure that Polygons are correctly oriented