org.deegree.sqldialect.oracle.sdo
Class SDOGeometryConverter
java.lang.Object
org.deegree.sqldialect.oracle.sdo.SDOGeometryConverter
public class SDOGeometryConverter
- extends Object
Convert between Oracle JDBC STRUCT and deegree Geometry
- Version:
- $Revision: 31323 $, $Date: 2011-07-19 16:15:16 +0200 (Tue, 19 Jul 2011) $
- Author:
- Stephan Reichhelm
Method Summary |
Object |
fromGeometry(oracle.jdbc.OracleConnection conn,
int srid,
Geometry geometry)
Deprecated. |
Object |
fromGeometry(oracle.jdbc.OracleConnection conn,
int srid,
Geometry geometry,
boolean allowJTSfallback)
|
Geometry |
toGeometry(oracle.sql.STRUCT sdoStruct,
ICRS crs)
Convert SDO_GEOMETRY (from Oracle STRUCT) to deegree Geometry
NOTE 1 (polygon)
Polygons (simple, multiple or compound) will be treated to have at least one exterior or unknown ring. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDOGeometryConverter
public SDOGeometryConverter()
toGeometry
public Geometry toGeometry(oracle.sql.STRUCT sdoStruct,
ICRS crs)
throws SQLException
- Convert SDO_GEOMETRY (from Oracle STRUCT) to deegree Geometry
NOTE 1 (polygon)
- Polygons (simple, multiple or compound) will be treated to have at least one exterior or unknown ring.
- When a polygon starts with interior rings the first unknown ring is treaded as exterior ring.
- Each N>1 occurrence of an exterior ring is treaded as new polygon.
- Parameters:
sdoStruct
- Database Object of type oracle.sql.STRUCTcrs
- SRS or null for automatic recognition from srid
- Returns:
- Geometry
- Throws:
SQLException
fromGeometry
@Deprecated
public Object fromGeometry(oracle.jdbc.OracleConnection conn,
int srid,
Geometry geometry)
throws SQLException
- Deprecated.
- Throws:
SQLException
fromGeometry
public Object fromGeometry(oracle.jdbc.OracleConnection conn,
int srid,
Geometry geometry,
boolean allowJTSfallback)
throws SQLException
- Throws:
SQLException
Copyright © 2011. All Rights Reserved.