|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vividsolutions.jts.io.oracle.OraReader
Reads a Geometry
from an Oracle MDSYS.GEOMETRY object.
A GeometryFactory
may be provided, otherwise
a default one will be used.
The provided GeometryFactory will be used, with the exception of the SRID field.
This will be extracted from the Geometry.
If a PrecisionModel
is supplied it is the callers's responsibility
to ensure that it matches the precision of the incoming data.
If a lower precision for the data is required, a subsequent
process must be run on the data to reduce its precision.
To use this class a suitable Oracle JDBC driver JAR must be present.
Field Summary | |
static int |
NULL_DIMENSION
|
Constructor Summary | |
OraReader()
Creates a new reader, with a default GeometryFactory. |
|
OraReader(GeometryFactory gf)
Creates a new reader, with the supplied GeometryFactory . |
Method Summary | |
int |
getDimension()
Gets the number of coordinate dimensions which will be read. |
Geometry |
read(oracle.sql.STRUCT struct)
This method will attempt to create a JTS Geometry for the MDSYS.GEOMETRY provided. |
void |
setDimension(int dimension)
Sets the number of coordinate dimensions to read. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NULL_DIMENSION
Constructor Detail |
public OraReader()
OraReader(GeometryFactory)
public OraReader(GeometryFactory gf)
GeometryFactory
.
It is assumed that the supplied PrecisionModel
matches the precision of the incoming data -
coordinates are not made precise.
gf
- A non-null geometry factory for later use.
java.lang.NullPointerException
- when the geometry factory is null.Method Detail |
public int getDimension()
public void setDimension(int dimension)
dimension
- the dimension to readpublic Geometry read(oracle.sql.STRUCT struct) throws java.sql.SQLException
struct
- The MDSYS.GEOMETRY Object to decode
java.sql.SQLException
- When a read error occured within the struct
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |