Package org.geotools.data.oracle.sdo
Class Coordinates
Object
Coordinates
HelperClass for dealing with JTS14 CoordinateSequences.
JTS14 does not supply suffiecnt API to allow the modification of CoordinateSequence in a lossless manner. To make full use of this class your CoordinateSequence will need to support the additional methods outlined in CoordinateAccess.
- Author:
- bowens , Refractions Research, Inc., $Author: jgarnett $ (last modification)
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
append
(StringBuffer buf, CoordinateAccess ca, int coordinate, int LEN, NumberFormat nf) static void
append
(StringBuffer buf, CoordinateAccess ca, NumberFormat nf) static void
append
(StringBuffer buf, CoordinateSequence cs, int coordinate, int LEN, NumberFormat nf) static void
append
(StringBuffer buf, CoordinateSequence cs, int coordinate, NumberFormat nf) static void
append
(StringBuffer buf, CoordinateSequence cs, NumberFormat nf) static int
D
(CoordinateSequence cs) static NumberFormat
format
(PrecisionModel pm) static int
L
(CoordinateSequence cs) static int
static CoordinateSequence
reverse
(CoordinateSequenceFactory factory, CoordinateSequence sequence) Reverse provided coordinate sequence (used to correct CW vs CCW order).static CoordinateSequence
subList
(CoordinateSequenceFactory factory, CoordinateSequence sequence, int fromIndex, int toIndex) Sublist opperation for CoordinateSequence.static String
toString
(CoordinateSequence cs, int coordinate, NumberFormat nf) static String
toString
(CoordinateSequence cs, PrecisionModel pm)
-
Method Details
-
subList
public static CoordinateSequence subList(CoordinateSequenceFactory factory, CoordinateSequence sequence, int fromIndex, int toIndex) Sublist opperation for CoordinateSequence.Opperates in the same manner as corresponding java util List method.
- Parameters:
factory
- factory used to manage sequencesequence
- coordinate sequencefromIndex
- - low endpoint (inclusive) of the subList.toIndex
- - high endpoint (exclusive) of the subList.- Returns:
- sublist of sequence (start,end] as provided by factory
-
reverse
public static CoordinateSequence reverse(CoordinateSequenceFactory factory, CoordinateSequence sequence) Reverse provided coordinate sequence (used to correct CW vs CCW order). -
toString
-
append
-
append
public static void append(StringBuffer buf, CoordinateSequence cs, int coordinate, int LEN, NumberFormat nf) -
append
public static void append(StringBuffer buf, CoordinateAccess ca, int coordinate, int LEN, NumberFormat nf) -
LEN
-
D
-
L
-
format
-
toString
-
append
-
append
-