|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vividsolutions.jts.io.oracle.OraWriter
public class OraWriter
Translates a JTS Geometry into an Oracle STRUCT representing an MDSYS.GEOMETRY object. A connection to an oracle instance with access to the definition of the MDSYS.GEOMETRY object is required by the oracle driver.
| Constructor Summary | |
|---|---|
OraWriter(oracle.jdbc.OracleConnection con)
Initialize the Oracle MDSYS.GEOMETRY Encoder with a valid oracle connection. |
|
OraWriter(oracle.jdbc.OracleConnection con,
int dimension)
Initialize the Oracle MDSYS.GEOMETRY Encoder with a valid oracle connection. |
|
| Method Summary | |
|---|---|
void |
setDimension(int dimension)
|
void |
setSRID(int srid)
Provides the oppotunity to force all geometries written using this writter to be written using the specified srid. |
oracle.sql.STRUCT |
write(Geometry geom)
This routine will translate the JTS Geometry into an Oracle MDSYS.GEOMETRY STRUCT. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OraWriter(oracle.jdbc.OracleConnection con)
con -
public OraWriter(oracle.jdbc.OracleConnection con,
int dimension)
con - dimension - | Method Detail |
|---|
public void setSRID(int srid)
srid -
public oracle.sql.STRUCT write(Geometry geom)
throws java.sql.SQLException
geom - JTS Geometry to encode
java.sql.SQLExceptionpublic void setDimension(int dimension)
dimension - The dimension to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||