org.geotools.data.oracle.sdo
Class SDOSqlDumper

Object
  extended by SDOSqlDumper

public class SDOSqlDumper
extends Object

Converts a JTS geometry into the equivalent MDSYS.SDO_GEOMETRY SQL syntax. Useful for non prepared statement based dialects and for debugging purposes

Module:
modules/plugin/jdbc-oracle (gt-jdbc-oracle.jar)

Constructor Summary
SDOSqlDumper()
           
 
Method Summary
static String toSDOGeom(Geometry geometry, int srid)
          Converts JTS Geometry to a String version of a SDO Geometry.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDOSqlDumper

public SDOSqlDumper()
Method Detail

toSDOGeom

public static String toSDOGeom(Geometry geometry,
                               int srid)
Converts JTS Geometry to a String version of a SDO Geometry. This should move to a utility class, as we now have more than one class using this (which is why it changed to public static) TODO: Multi eometries

Parameters:
geometry - The JTS Geometry to convert.
srid - DOCUMENT ME!
Returns:
A String representation of the SDO Geometry.


Copyright © 1996-2009 Geotools. All Rights Reserved.