org.deegree_impl.model.geometry
Class SDEAdapter

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

public class SDEAdapter
extends java.lang.Object

Adapter class for exporting deegree geometries to WKT and to wrap WKT code geometries to deegree geometries.

Version:
$Revision: 1.4 $
Author:
Andreas Poth

Constructor Summary
SDEAdapter()
           
 
Method Summary
private static SeShape export(GM_Curve cur, SeCoordinateReference crs)
           
private static SeShape export(GM_MultiCurve mc, SeCoordinateReference crs)
           
private static SeShape export(GM_MultiPoint mp, SeCoordinateReference crs)
           
private static SeShape export(GM_MultiSurface ms, SeCoordinateReference crs)
           
static SeShape export(GM_Object geom, SeCoordinateReference crs)
           
private static SeShape export(GM_Point point, SeCoordinateReference crs)
           
private static SeShape export(GM_Surface sur, SeCoordinateReference crs)
           
static GM_Object wrap(SeShape shape)
           
private static GM_Curve wrapCurve(SeShape shape)
          creates a GM_Curve from a SeShape
private static GM_MultiCurve wrapMultiCurve(SeShape shape)
          creates a GM_MultiCurve from a WKT
private static GM_MultiPoint wrapMultiPoint(SeShape shape)
          creates a GM_MultiPoint from a WKT
private static GM_MultiSurface wrapMultiSurface(SeShape shape)
          creates a GM_MultiSurface from a WKT
private static GM_Point wrapPoint(SeShape shape)
          creates a GM_Point from a SeShape
private static GM_Surface wrapSurface(SeShape shape)
          creates a GM_Surface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDEAdapter

public SDEAdapter()
Method Detail

wrap

public static GM_Object wrap(SeShape shape)
                      throws GM_Exception,
                             SeException
Parameters:
shape -
Returns:
the corresponding GM_Object
Throws:
GM_Exception - if type unsupported or conversion failed
SeException

export

public static SeShape export(GM_Object geom,
                             SeCoordinateReference crs)
                      throws GM_Exception,
                             SeException
Parameters:
geom - geometry
Returns:
Throws:
GM_Exception
SeException

export

private static SeShape export(GM_Point point,
                              SeCoordinateReference crs)
                       throws SeException
Parameters:
point - point geometry
Returns:
Throws:
SeException

export

private static SeShape export(GM_Curve cur,
                              SeCoordinateReference crs)
                       throws GM_Exception,
                              SeException
Parameters:
cur - curve geometry
Returns:
Throws:
GM_Exception
SeException

export

private static SeShape export(GM_Surface sur,
                              SeCoordinateReference crs)
                       throws SeException
Parameters:
sur -
Returns:
Throws:
SeException

export

private static SeShape export(GM_MultiPoint mp,
                              SeCoordinateReference crs)
                       throws SeException
Parameters:
mp -
crs -
Returns:
Throws:
SeException

export

private static SeShape export(GM_MultiCurve mc,
                              SeCoordinateReference crs)
                       throws GM_Exception,
                              SeException
Parameters:
mc -
Returns:
Throws:
GM_Exception
SeException

export

private static SeShape export(GM_MultiSurface ms,
                              SeCoordinateReference crs)
                       throws SeException
Parameters:
ms -
Returns:
Throws:
SeException

wrapPoint

private static GM_Point wrapPoint(SeShape shape)
                           throws GM_Exception,
                                  SeException
creates a GM_Point from a SeShape

Parameters:
shape -
Throws:
GM_Exception
SeException

wrapCurve

private static GM_Curve wrapCurve(SeShape shape)
                           throws GM_Exception,
                                  SeException
creates a GM_Curve from a SeShape

Parameters:
shape -
Throws:
GM_Exception
SeException

wrapSurface

private static GM_Surface wrapSurface(SeShape shape)
                               throws GM_Exception,
                                      SeException
creates a GM_Surface

Parameters:
shape -
Throws:
GM_Exception
SeException

wrapMultiPoint

private static GM_MultiPoint wrapMultiPoint(SeShape shape)
                                     throws GM_Exception,
                                            SeException
creates a GM_MultiPoint from a WKT

Parameters:
shape -
Throws:
GM_Exception
SeException

wrapMultiCurve

private static GM_MultiCurve wrapMultiCurve(SeShape shape)
                                     throws GM_Exception,
                                            SeException
creates a GM_MultiCurve from a WKT

Parameters:
shape -
Throws:
GM_Exception
SeException

wrapMultiSurface

private static GM_MultiSurface wrapMultiSurface(SeShape shape)
                                         throws GM_Exception,
                                                SeException
creates a GM_MultiSurface from a WKT

Parameters:
shape -
Throws:
GM_Exception
SeException