org.geotools.data.oracle.sdo
Class Coordinates

java.lang.Object
  extended byorg.geotools.data.oracle.sdo.Coordinates

public class Coordinates
extends java.lang.Object

HelperClass for dealing with JTS14 CoordianteSequences.

JTS14 does not supply suffiecnt API to allow the modification of CoordinateSequence in a lossless manner. To make full use of this class your CoordianteSequence will need to support the additional methods outlined in CoordinateAccess.

Version:
$Id: Coordinates.java 17700 2006-01-22 23:30:39Z desruisseaux $
Author:
bowens , Refractions Research, Inc., $Author: jgarnett $ (last modification)

Method Summary
static void append(java.lang.StringBuffer buf, CoordinateAccess ca, int coordinate, int LEN, java.text.NumberFormat nf)
           
static void append(java.lang.StringBuffer buf, CoordinateAccess ca, java.text.NumberFormat nf)
           
static void append(java.lang.StringBuffer buf, com.vividsolutions.jts.geom.CoordinateSequence cs, int coordinate, int LEN, java.text.NumberFormat nf)
           
static void append(java.lang.StringBuffer buf, com.vividsolutions.jts.geom.CoordinateSequence cs, int coordinate, java.text.NumberFormat nf)
           
static void append(java.lang.StringBuffer buf, com.vividsolutions.jts.geom.CoordinateSequence cs, java.text.NumberFormat nf)
           
static int D(com.vividsolutions.jts.geom.CoordinateSequence cs)
           
static java.text.NumberFormat format(com.vividsolutions.jts.geom.PrecisionModel pm)
           
static int L(com.vividsolutions.jts.geom.CoordinateSequence cs)
           
static int LEN(com.vividsolutions.jts.geom.CoordinateSequence cs)
           
static com.vividsolutions.jts.geom.CoordinateSequence reverse(com.vividsolutions.jts.geom.CoordinateSequenceFactory factory, com.vividsolutions.jts.geom.CoordinateSequence sequence)
          DOCUMENT ME!
static com.vividsolutions.jts.geom.CoordinateSequence subList(com.vividsolutions.jts.geom.CoordinateSequenceFactory factory, com.vividsolutions.jts.geom.CoordinateSequence sequence, int fromIndex, int toIndex)
          Sublist opperation for CoordinateSequence.
static java.lang.String toString(com.vividsolutions.jts.geom.CoordinateSequence cs, int coordinate, java.text.NumberFormat nf)
           
static java.lang.String toString(com.vividsolutions.jts.geom.CoordinateSequence cs, com.vividsolutions.jts.geom.PrecisionModel pm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

subList

public static com.vividsolutions.jts.geom.CoordinateSequence subList(com.vividsolutions.jts.geom.CoordinateSequenceFactory factory,
                                                                     com.vividsolutions.jts.geom.CoordinateSequence sequence,
                                                                     int fromIndex,
                                                                     int toIndex)
Sublist opperation for CoordinateSequence.

Opperates in the same manner as corrasponding java util List method.

Parameters:
factory - factory used to manage sequence
sequence - coordinate sequence
fromIndex - - 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 com.vividsolutions.jts.geom.CoordinateSequence reverse(com.vividsolutions.jts.geom.CoordinateSequenceFactory factory,
                                                                     com.vividsolutions.jts.geom.CoordinateSequence sequence)
DOCUMENT ME!

Parameters:
factory -
sequence -
Returns:

toString

public static java.lang.String toString(com.vividsolutions.jts.geom.CoordinateSequence cs,
                                        int coordinate,
                                        java.text.NumberFormat nf)

append

public static void append(java.lang.StringBuffer buf,
                          com.vividsolutions.jts.geom.CoordinateSequence cs,
                          int coordinate,
                          java.text.NumberFormat nf)

append

public static void append(java.lang.StringBuffer buf,
                          com.vividsolutions.jts.geom.CoordinateSequence cs,
                          int coordinate,
                          int LEN,
                          java.text.NumberFormat nf)

append

public static void append(java.lang.StringBuffer buf,
                          CoordinateAccess ca,
                          int coordinate,
                          int LEN,
                          java.text.NumberFormat nf)

LEN

public static int LEN(com.vividsolutions.jts.geom.CoordinateSequence cs)

D

public static int D(com.vividsolutions.jts.geom.CoordinateSequence cs)

L

public static int L(com.vividsolutions.jts.geom.CoordinateSequence cs)

format

public static java.text.NumberFormat format(com.vividsolutions.jts.geom.PrecisionModel pm)

toString

public static java.lang.String toString(com.vividsolutions.jts.geom.CoordinateSequence cs,
                                        com.vividsolutions.jts.geom.PrecisionModel pm)

append

public static void append(java.lang.StringBuffer buf,
                          com.vividsolutions.jts.geom.CoordinateSequence cs,
                          java.text.NumberFormat nf)

append

public static void append(java.lang.StringBuffer buf,
                          CoordinateAccess ca,
                          java.text.NumberFormat nf)


Copyright © GeoTools. All Rights Reserved.