|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCoordinateSequences
CoordinateSequences
public class CoordinateSequences
Utility functions for coordinate sequences (extends the same named JTS class)
Constructor Summary | |
---|---|
CoordinateSequences()
|
Method Summary | |
---|---|
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 |
isCCW(CoordinateSequence ring)
Computes whether a ring defined by an array of Coordinate s is
oriented counter-clockwise. |
Methods inherited from class CoordinateSequences |
---|
copy, copyCoord, ensureValidRing, extend, isRing, reverse, swap |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoordinateSequences()
Method Detail |
---|
public static boolean isCCW(CoordinateSequence ring)
Coordinate
s is
oriented counter-clockwise.
ring
- an array of Coordinates forming a ring
public 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 Geometry
public static int coordinateDimension(CoordinateSequence seq)
There is one small hole: if a CoordinateArraySequence is empty, the dimension will be reported as 3.
seq
- a CoordinateSequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |