public class CoordinateSequences
extends CoordinateSequences
Constructor and Description |
---|
CoordinateSequences() |
Modifier and Type | Method and Description |
---|---|
static int |
computeOrientation(CoordinateSequence cs,
int p1,
int p2,
int q) |
static int |
coordinateDimension(CoordinateSequence seq)
Gets the effective dimension of a CoordinateSequence.
|
static int |
coordinateDimension(Geometry g)
Gets the dimension of the coordinates in a
Geometry , by reading it from a component
CoordinateSequence . |
static boolean |
equalsND(Geometry g1,
Geometry g2)
Returns true if the two geometries are equal in N dimensions (normal geometry equality is
only 2D)
|
static boolean |
isCCW(CoordinateSequence ring)
Computes whether a ring defined by an array of
Coordinate s is oriented
counter-clockwise. |
public static boolean isCCW(CoordinateSequence ring)
Coordinate
s is oriented
counter-clockwise.
ring
- an array of Coordinates forming a ringpublic static int computeOrientation(CoordinateSequence cs, int p1, int p2, int q)
public static int coordinateDimension(Geometry g)
Geometry
, by reading it from a component
CoordinateSequence
. This will be usually either 2 or 3.g
- a Geometrypublic static int coordinateDimension(CoordinateSequence seq)
There is one small hole: if a CoordinateArraySequence is empty, the dimension will be reported as 3.
seq
- a CoordinateSequencepublic static boolean equalsND(Geometry g1, Geometry g2)
g1
- g2
- Copyright © 1996–2019 Geotools. All rights reserved.