Package oracle.spatial.util
Class KML2
- java.lang.Object
-
- oracle.spatial.util.KML2
-
public class KML2 extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.sql.Connection
_conn
protected static java.lang.String
_srsAlias
protected static java.lang.String
_srsNameSpace
-
Constructor Summary
Constructors Constructor Description KML2()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
CCWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)
protected void
CWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)
protected boolean
geometryHasArcs(JGeometry theGeom, int numDim)
protected boolean
geometryHasEtypeZero(JGeometry theGeom)
protected void
outputCoordinates(int numDim, int numPoints, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)
static void
setConnection(java.sql.Connection conn)
static void
setsrsAlias(java.lang.String srsAlias)
static void
setsrsNameSpace(java.lang.String srsNameSpace)
static java.lang.String
to_KMLGeometry(java.sql.Struct geom)
Returns KML String object for the java.sql.Struct Geometry Object.static java.lang.String
to_KMLGeometry(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias)
Returns KML String object for the java.sql.Struct Geometry Object with srsNameSpace and srsAlias.static java.lang.String
to_KMLGeometry(JGeometry theGeom)
Returns KML String object for the JGeometry Object.static java.lang.String
to_KMLGeometry(oracle.sql.STRUCT geom)
Deprecated.static java.lang.String
to_KMLGeometry(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias)
Deprecated.static oracle.sql.CLOB
to_KMLGeometryCLOB(java.sql.Struct geom)
Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)
instead.static oracle.sql.CLOB
to_KMLGeometryCLOB(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias)
Deprecated.static oracle.sql.CLOB
to_KMLGeometryCLOB(oracle.sql.STRUCT geom)
Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)
instead.static oracle.sql.CLOB
to_KMLGeometryCLOB(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias)
Deprecated.static oracle.jdbc.OracleClob
to_KMLGeometryCLOBJS(java.sql.Struct geom)
Returns KML OracleClob object for the java.sql.Struct Geometry Object.static oracle.jdbc.OracleClob
to_KMLGeometryCLOBJS(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias)
Returns KML OracleClob object for the java.sql.Struct Object with srsNameSpace and srsAlias.protected void
toKML(int level, JGeometry theGeom, java.lang.StringBuffer kmlout)
-
-
-
Method Detail
-
setConnection
public static void setConnection(java.sql.Connection conn)
-
setsrsNameSpace
public static void setsrsNameSpace(java.lang.String srsNameSpace)
-
setsrsAlias
public static void setsrsAlias(java.lang.String srsAlias)
-
CCWOutputRectangle
protected void CCWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream) throws java.io.IOException
- Throws:
java.io.IOException
-
CWOutputRectangle
protected void CWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream) throws java.io.IOException
- Throws:
java.io.IOException
-
outputCoordinates
protected void outputCoordinates(int numDim, int numPoints, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream) throws java.io.IOException
- Throws:
java.io.IOException
-
geometryHasArcs
protected boolean geometryHasArcs(JGeometry theGeom, int numDim)
-
geometryHasEtypeZero
protected boolean geometryHasEtypeZero(JGeometry theGeom)
-
toKML
protected void toKML(int level, JGeometry theGeom, java.lang.StringBuffer kmlout) throws java.sql.SQLException, java.io.IOException, DataException, java.lang.Exception
- Throws:
java.sql.SQLException
java.io.IOException
DataException
java.lang.Exception
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Deprecated.Returns KML CLOB object for the oracle.sql.STRUCT Object with srsNameSpace and srsAlias.- Parameters:
geom
-srsNameSpace
-srsAlias
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Deprecated.Returns KML CLOB object for the java.sql.Struct Object with srsNameSpace and srsAlias.- Parameters:
geom
-srsNameSpace
-srsAlias
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Deprecated.Returns KML String object for the oracle.sql.STRUCT Geometry Object with srsNameSpace and srsAlias.- Parameters:
geom
-srsNameSpace
-srsAlias
-- Returns:
- String
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Returns KML String object for the java.sql.Struct Geometry Object with srsNameSpace and srsAlias.- Parameters:
geom
-srsNameSpace
-srsAlias
-- Returns:
- String
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(oracle.sql.STRUCT geom) throws java.sql.SQLException, java.io.IOException
Deprecated.Returns KML String object for the oracle.sql.STRUCT Geometry Object.- Parameters:
geom
-- Returns:
- String
- Throws:
java.sql.SQLException
java.io.IOException
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOException
Returns KML String object for the java.sql.Struct Geometry Object.- Parameters:
geom
-- Returns:
- String
- Throws:
java.sql.SQLException
java.io.IOException
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(oracle.sql.STRUCT geom) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)
instead.Returns KML CLOB object for the oracle.sql.STRUCT Geometry Object.- Parameters:
geom
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)
instead.Returns KML CLOB object for the java.sql.Struct Geometry Object.- Parameters:
geom
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(JGeometry theGeom) throws java.sql.SQLException, java.io.IOException
Returns KML String object for the JGeometry Object.- Parameters:
theGeom
-- Returns:
- String
- Throws:
java.sql.SQLException
java.io.IOException
-
to_KMLGeometryCLOBJS
public static oracle.jdbc.OracleClob to_KMLGeometryCLOBJS(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Returns KML OracleClob object for the java.sql.Struct Geometry Object.- Parameters:
geom
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
to_KMLGeometryCLOBJS
public static oracle.jdbc.OracleClob to_KMLGeometryCLOBJS(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias) throws java.sql.SQLException, java.io.IOException, java.lang.Exception
Returns KML OracleClob object for the java.sql.Struct Object with srsNameSpace and srsAlias.- Parameters:
geom
-srsNameSpace
-srsAlias
-- Returns:
- CLOB
- Throws:
java.sql.SQLException
java.io.IOException
java.lang.Exception
-
-