public abstract class WKBasis extends java.lang.Object implements WKAdapter
| Constructor and Description |
|---|
WKBasis() |
WKBasis(ByteOrder defaultByteOrder) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
fromJGeometry(JGeometry geom)
This transforms a JGeometry to a WKB/WKT geometry.
|
byte[] |
fromStruct(java.sql.Struct geom)
Creates a WKB/WKT geometry from a Struct object.
|
byte[] |
fromSTRUCT(STRUCT geom)
Creates a WKB/WKT geometry from a STRUCT object.
|
JGeometry |
toJGeometry(byte[] wkb)
This transforms a WKB/WKT geometry to a JGeometry.
|
java.sql.Struct |
toStruct(byte[] wkContent,
java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC Struct object.
|
STRUCT |
toSTRUCT(byte[] wkContent,
java.sql.Connection conn)
Convert the given WKB/WKT geometry into an Oracle JDBC STRUCT object.
|
public WKBasis(ByteOrder defaultByteOrder)
public WKBasis()
public byte[] fromJGeometry(JGeometry geom) throws GeometryExceptionWithContext
WKAdapterfromJGeometry in interface WKAdaptergeom - a JGeometry representing the Oracle Spatial geometryGeometryExceptionWithContextpublic final STRUCT toSTRUCT(byte[] wkContent,
java.sql.Connection conn)
throws java.sql.SQLException,
GeometryExceptionWithContext
toSTRUCT in interface WKAdapterwkContent - the WKB/WKT geometry (byte array) to be convertedconn - the connection to be usedjava.sql.SQLExceptionGeometryExceptionWithContextpublic final byte[] fromSTRUCT(STRUCT geom)
throws java.sql.SQLException,
GeometryExceptionWithContext
fromSTRUCT in interface WKAdaptergeom - the STRUCT object from an oracle result setjava.sql.SQLExceptionGeometryExceptionWithContextpublic final java.sql.Struct toStruct(byte[] wkContent,
java.sql.Connection conn)
throws java.sql.SQLException,
GeometryExceptionWithContext
wkContent - the WKB/WKT geometry (byte array) to be convertedconn - the connection to be usedjava.sql.SQLExceptionGeometryExceptionWithContextpublic final byte[] fromStruct(java.sql.Struct geom)
throws java.sql.SQLException,
GeometryExceptionWithContext
geom - the Struct object from an oracle result setjava.sql.SQLExceptionGeometryExceptionWithContextpublic JGeometry toJGeometry(byte[] wkb) throws GeometryExceptionWithContext
WKAdaptertoJGeometry in interface WKAdapterwkb - a byte[] representing the WKB/WKT geometryGeometryExceptionWithContext