org.geotools.data.oracle.sdo
Class SDOSqlDumper

java.lang.Object
  extended by org.geotools.data.oracle.sdo.SDOSqlDumper

public class SDOSqlDumper
extends java.lang.Object

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


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

Constructor Detail

SDOSqlDumper

public SDOSqlDumper()
Method Detail

toSDOGeom

public static java.lang.String toSDOGeom(com.vividsolutions.jts.geom.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-2010 Geotools. All Rights Reserved.