public class CurveGeometryConverter
extends org.geotools.data.oracle.sdo.GeometryConverter
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
static int |
SDO_ELEM_INFO_DATUM_POS |
static int |
SDO_GTYPE_DATUM_POS
Used to convert double[] to SDO_ODINATE_ARRAY.
|
static int |
SDO_ORDINATES_DATUM_POS |
static int |
SDO_POINT_DATUM_POS |
static int |
SDO_SRID_DATUM_POS |
| Constructor and Description |
|---|
CurveGeometryConverter(oracle.jdbc.OracleConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
protected oracle.sql.STRUCT |
createStructFromDatum(Object[] datum)
Constructs a struct object given the datum object made from native java
objects
|
protected Object |
getDatumObjectFromCurvedGeom(org.locationtech.jts.geom.Geometry geom,
int srid)
Constructs the datum object made from native java objects so that can be used
by others easily
|
protected List<Integer> |
getElemListFromGeom(org.locationtech.jts.geom.Geometry geomObject,
int srid,
int startEnd)
Calculates the a list of Integers that defines the geometry
element_info_array of sdo_geometry in oracle sequence
|
protected List<Double> |
getOrdinateListFromGeom(org.locationtech.jts.geom.Geometry geomObject,
int srid)
Calculates the a list of doubles that defines the geometry coordinates
sequence
|
protected boolean |
isCurvedGeometry(org.locationtech.jts.geom.Geometry g) |
protected List<Integer> |
setStartEndOfGeometry(List<Integer> curvedGeomInfoList,
int startEnd)
sets the firsts elements of all triplets in a info_array of
curvedGeomInfoList sequence, used for geometry collections or compounds
polygons
|
oracle.sql.STRUCT |
toSDO(org.locationtech.jts.geom.Geometry geom,
int srid) |
asDouble, asDoubleArray, asDoubleArray, asDoubleArray, asEmptyDataType, asGeometry, asIntArray, asIntArray, asInteger, getDataTypeName, isCapable, toARRAY, toARRAY, toATTRIBUTE, toCHAR, toNUMBER, toNUMBER, toORDINATE, toORDINATE, toSDO, toSTRUCTprotected final org.apache.commons.logging.Log logger
public static final int SDO_GTYPE_DATUM_POS
Will return null as an empty SDO_GEOMETRY
POSICIONES FIJAS DE CADA ELEMENTO EN EL OBJETO DATUM QUE SIRVE PARA
CREAR EL STRUTS,
Constant Field Valuespublic static final int SDO_SRID_DATUM_POS
public static final int SDO_POINT_DATUM_POS
public static final int SDO_ELEM_INFO_DATUM_POS
public static final int SDO_ORDINATES_DATUM_POS
public CurveGeometryConverter(oracle.jdbc.OracleConnection connection)
public oracle.sql.STRUCT toSDO(org.locationtech.jts.geom.Geometry geom,
int srid)
throws SQLException
toSDO in class org.geotools.data.oracle.sdo.GeometryConverterSQLExceptionprotected Object getDatumObjectFromCurvedGeom(org.locationtech.jts.geom.Geometry geom, int srid) throws SQLException
datum - SQLExceptionprotected oracle.sql.STRUCT createStructFromDatum(Object[] datum) throws Exception
datum - Exceptionprotected List<Integer> setStartEndOfGeometry(List<Integer> curvedGeomInfoList, int startEnd)
curvedGeomInfoList - the element info array of a curvedGeometrystartEnd - this is the current length of the ordinates array
of the geometryprotected boolean isCurvedGeometry(org.locationtech.jts.geom.Geometry g)
protected List<Integer> getElemListFromGeom(org.locationtech.jts.geom.Geometry geomObject, int srid, int startEnd) throws SQLException
geomObject - srid - startEnd - this is the current length of the ordinates array, to set
the first element of the element infoSQLExceptionprotected List<Double> getOrdinateListFromGeom(org.locationtech.jts.geom.Geometry geomObject, int srid) throws SQLException
geomObject - srid - SQLExceptionCopyright © 2021. All rights reserved.