|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.spatial.util.WKBasis
public abstract class WKBasis
This class provides some implementations common to WKB and WKT, particularly the translation between WKB/WKT and STRUCT. This translation is based on the translation between WKB/WKT and JGeometry (which is specific to the WKB and WKT subclasses of this class).
| Constructor Summary | |
|---|---|
WKBasis() |
|
WKBasis(ByteOrder defaultByteOrder) |
|
| Method Summary | |
|---|---|
byte[] |
fromJGeometry(JGeometry geom)This transforms a JGeometry to a WKB/WKT geometry. |
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. |
STRUCT |
toSTRUCT(byte[] wkContent, java.sql.Connection conn)Convert the given WKB/WKT geometry into an Oracle JDBC STRUCT object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WKBasis(ByteOrder defaultByteOrder)
public WKBasis()
| Method Detail |
|---|
public byte[] fromJGeometry(JGeometry geom)
throws GeometryExceptionWithContext
WKAdapterfromJGeometry in interface WKAdaptergeom - a JGeometry representing the Oracle Spatial geometryGeometryExceptionWithContext
public 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.SQLExceptionGeometryExceptionWithContext
public final byte[] fromSTRUCT(STRUCT geom)
throws java.sql.SQLException,
GeometryExceptionWithContext
fromSTRUCT in interface WKAdaptergeom - the STRUCT object from an oracle result setjava.sql.SQLExceptionGeometryExceptionWithContext
public JGeometry toJGeometry(byte[] wkb)
throws GeometryExceptionWithContext
WKAdaptertoJGeometry in interface WKAdapterwkb - a byte[] representing the WKB/WKT geometryGeometryExceptionWithContext
|
Oracle® Spatial Java API Reference 11g Release 1 (11.1) B28401-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||