gistoolkit.datasources.oracle
Class SDOParser

java.lang.Object
  extended bygistoolkit.datasources.oracle.SDOParser

public class SDOParser
extends java.lang.Object

Class to read the SDO format objects, and convert them to GISToolkit features.


Constructor Summary
SDOParser()
          Creates a new instance of SDOParser
 
Method Summary
 oracle.sdoapi.geom.Geometry convert(Shape inFeature)
          Converts an GISToolkit feature to an oracle geometry.
static Shape convertSDO(oracle.sdoapi.geom.Geometry inGeometry)
          Converts an oracle geometry to a GISToolkit feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDOParser

public SDOParser()
Creates a new instance of SDOParser

Method Detail

convertSDO

public static Shape convertSDO(oracle.sdoapi.geom.Geometry inGeometry)
Converts an oracle geometry to a GISToolkit feature. If the geometry type is not recognized, or the geometry can not be parsed, then the return from this method will be null. Since the GISToolkit features do not support multi dimensional coordinates or curves, the geometries will be flattened and linearized if there are curves or elevations/measures in the source.


convert

public oracle.sdoapi.geom.Geometry convert(Shape inFeature)
                                    throws oracle.sdoapi.geom.InvalidGeometryException
Converts an GISToolkit feature to an oracle geometry. Since the GISToolkit features are two dimensional and linear, the closest oracle equivalent will be used to express the feature. No attempt is made to preserve the Oracle dimensions or curves.

Throws:
oracle.sdoapi.geom.InvalidGeometryException