deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.io.sdeapi
Class SDEAdapter

java.lang.Object
  extended by org.deegree.io.sdeapi.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: 23718 $
Author:
Andreas Poth

Constructor Summary
SDEAdapter()
           
 
Method Summary
static com.esri.sde.sdk.client.SeShape export(Geometry geom, com.esri.sde.sdk.client.SeCoordinateReference crs)
           
static int findSDEType(java.lang.Object value)
          Find an appropriate ArcSDE datataype for the given object value
static int mapSDE2SQL(int sdetype)
          Map ArcSDE datatypes to appropriate SQL datataypes.
static int mapSQL2SDE(int sqltype)
          Map SQL datatypes to appropriate ArcSDE datataypes.
static void setRowValue(com.esri.sde.sdk.client.SeRow row, int pos, java.lang.Object value, int sdetype)
          Set a row value with the appropriate setting method.
static Geometry wrap(com.esri.sde.sdk.client.SeShape shape, CoordinateSystem coordinateSystem)
           
 
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 Geometry wrap(com.esri.sde.sdk.client.SeShape shape,
                            CoordinateSystem coordinateSystem)
                     throws GeometryException,
                            com.esri.sde.sdk.client.SeException
Parameters:
shape -
coordinateSystem -
Returns:
the corresponding Geometry
Throws:
GeometryException - if type unsupported or conversion failed
com.esri.sde.sdk.client.SeException

export

public static com.esri.sde.sdk.client.SeShape export(Geometry geom,
                                                     com.esri.sde.sdk.client.SeCoordinateReference crs)
                                              throws GeometryException,
                                                     com.esri.sde.sdk.client.SeException
Parameters:
geom - geometry
crs -
Returns:
the shape
Throws:
GeometryException
com.esri.sde.sdk.client.SeException

setRowValue

public static void setRowValue(com.esri.sde.sdk.client.SeRow row,
                               int pos,
                               java.lang.Object value,
                               int sdetype)
                        throws com.esri.sde.sdk.client.SeException
Set a row value with the appropriate setting method. If the datatype is unknown it will be assigned by following rules:
- first, check the dataype of the given value and choose an appropriate setter method
- or, if it isn't assignable this way, take the setString method

Parameters:
row -
pos - - the column position (0 - n)
value - - the column value
sdetype - - the datatype, expressed as SeColumnDefinition constant or -1, if unknown
Throws:
com.esri.sde.sdk.client.SeException

findSDEType

public static int findSDEType(java.lang.Object value)
Find an appropriate ArcSDE datataype for the given object value

Parameters:
value -
Returns:
sdetype

mapSQL2SDE

public static int mapSQL2SDE(int sqltype)
Map SQL datatypes to appropriate ArcSDE datataypes.

Parameters:
sqltype -
Returns:
sdetype

mapSDE2SQL

public static int mapSDE2SQL(int sdetype)
Map ArcSDE datatypes to appropriate SQL datataypes.

Parameters:
sdetype -
Returns:
sqltype

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org