|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.util.CoordinateArrays
public class CoordinateArrays
Some utility functions for handling Coordinate arrays.
| Constructor Summary | |
|---|---|
CoordinateArrays()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoordinateArrays()
| Method Detail |
|---|
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 Geometry
public 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 Geometries
public 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.COUNTERCLOCKWISE
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||