Package org.geotools.data.oracle.sdo
Class Coordinates
- Object
-
- Coordinates
-
public class Coordinates extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
LEN(CoordinateSequence cs)
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 Detail
-
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
public static String toString(CoordinateSequence cs, int coordinate, NumberFormat nf)
-
append
public static void append(StringBuffer buf, CoordinateSequence cs, int coordinate, NumberFormat nf)
-
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
public static int LEN(CoordinateSequence cs)
-
D
public static int D(CoordinateSequence cs)
-
L
public static int L(CoordinateSequence cs)
-
format
public static NumberFormat format(PrecisionModel pm)
-
toString
public static String toString(CoordinateSequence cs, PrecisionModel pm)
-
append
public static void append(StringBuffer buf, CoordinateSequence cs, NumberFormat nf)
-
append
public static void append(StringBuffer buf, CoordinateAccess ca, NumberFormat nf)
-
-