org.deegree_impl.model.geometry
Class OracleAdapter

java.lang.Object
  extended byorg.deegree_impl.model.geometry.OracleAdapter

public class OracleAdapter
extends java.lang.Object

Version:
$Revision: 1.5 $
Author:
Andreas Poth

Constructor Summary
OracleAdapter()
           
 
Method Summary
static Geometry export(GM_Object geom)
           
static GM_Object wrap(Geometry geometry, CS_CoordinateSystem crs)
          creates a deegree geometry object from an oracle sdo geometry
static GM_Curve wrapCurve(LineString lineString, CS_CoordinateSystem crs)
          creates a GM_Curve from an oracle sdo LineString
static GM_MultiCurve wrapMultiCurve(MultiLineString multiLineString, CS_CoordinateSystem crs)
          creates a GM_MultiCurve from an oracle sdo MultiPoint.
static GM_MultiPoint wrapMultiPoint(MultiPoint multiPoint, CS_CoordinateSystem crs)
          creates a GM_MultiPoint from an oracle sdo MultiPoint.
static GM_MultiSurface wrapMultiSurface(MultiPolygon multiPolygon, CS_CoordinateSystem crs, GM_SurfaceInterpolation si)
          creates a GM_MultiSurface from an oracle sdo MultiPolygon.
static GM_Point wrapPoint(Point point, CS_CoordinateSystem srs)
          creates a GM_Point from a oracle sdo point.
static GM_Surface wrapSurface(Polygon polygon, CS_CoordinateSystem crs, GM_SurfaceInterpolation si)
          creates a GM_Surface from an oracle sdo Polygon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleAdapter

public OracleAdapter()
Method Detail

export

public static Geometry export(GM_Object geom)

wrap

public static GM_Object wrap(Geometry geometry,
                             CS_CoordinateSystem crs)
                      throws GM_Exception
creates a deegree geometry object from an oracle sdo geometry

Throws:
GM_Exception

wrapPoint

public static GM_Point wrapPoint(Point point,
                                 CS_CoordinateSystem srs)
                          throws GM_Exception
creates a GM_Point from a oracle sdo point.

Throws:
GM_Exception

wrapCurve

public static GM_Curve wrapCurve(LineString lineString,
                                 CS_CoordinateSystem crs)
                          throws GM_Exception
creates a GM_Curve from an oracle sdo LineString

Parameters:
lineString - oracle sdo LineString
crs - coordinate reference system of the curve
Throws:
GM_Exception

wrapSurface

public static GM_Surface wrapSurface(Polygon polygon,
                                     CS_CoordinateSystem crs,
                                     GM_SurfaceInterpolation si)
                              throws GM_Exception
creates a GM_Surface from an oracle sdo Polygon

Parameters:
polygon - oracle sdo Polygon
crs - spatial reference system of the curve
si - GM_SurfaceInterpolation
Throws:
GM_Exception

wrapMultiPoint

public static GM_MultiPoint wrapMultiPoint(MultiPoint multiPoint,
                                           CS_CoordinateSystem crs)
                                    throws GM_Exception
creates a GM_MultiPoint from an oracle sdo MultiPoint.

Parameters:
multiPoint - oracle sdo MultiPoint
crs - spatial reference system of the curve
Throws:
GM_Exception

wrapMultiCurve

public static GM_MultiCurve wrapMultiCurve(MultiLineString multiLineString,
                                           CS_CoordinateSystem crs)
                                    throws GM_Exception
creates a GM_MultiCurve from an oracle sdo MultiPoint.

Parameters:
multiLineString - oracle sdo MultiLineString
crs - spatial reference system of the multi curve
Throws:
GM_Exception

wrapMultiSurface

public static GM_MultiSurface wrapMultiSurface(MultiPolygon multiPolygon,
                                               CS_CoordinateSystem crs,
                                               GM_SurfaceInterpolation si)
                                        throws GM_Exception
creates a GM_MultiSurface from an oracle sdo MultiPolygon.

Parameters:
multiPolygon - oracle sdo MultiPolygon
crs - spatial reference system of the multi surface
Throws:
GM_Exception