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_connprotected static java.lang.String_srsAliasprotected 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 voidCCWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)protected voidCWOutputRectangle(int numDim, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)protected booleangeometryHasArcs(JGeometry theGeom, int numDim)protected booleangeometryHasEtypeZero(JGeometry theGeom)protected voidoutputCoordinates(int numDim, int numPoints, double[] theOrdinates, int startOrdOffset, java.lang.StringBuffer kmlStream)static voidsetConnection(java.sql.Connection conn)static voidsetsrsAlias(java.lang.String srsAlias)static voidsetsrsNameSpace(java.lang.String srsNameSpace)static java.lang.Stringto_KMLGeometry(java.sql.Struct geom)Returns KML String object for the java.sql.Struct Geometry Object.static java.lang.Stringto_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.Stringto_KMLGeometry(JGeometry theGeom)Returns KML String object for the JGeometry Object.static java.lang.Stringto_KMLGeometry(oracle.sql.STRUCT geom)Deprecated.static java.lang.Stringto_KMLGeometry(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias)Deprecated.static oracle.sql.CLOBto_KMLGeometryCLOB(java.sql.Struct geom)Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)instead.static oracle.sql.CLOBto_KMLGeometryCLOB(java.sql.Struct geom, java.lang.String srsNameSpace, java.lang.String srsAlias)Deprecated.static oracle.sql.CLOBto_KMLGeometryCLOB(oracle.sql.STRUCT geom)Deprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)instead.static oracle.sql.CLOBto_KMLGeometryCLOB(oracle.sql.STRUCT geom, java.lang.String srsNameSpace, java.lang.String srsAlias)Deprecated.static oracle.jdbc.OracleClobto_KMLGeometryCLOBJS(java.sql.Struct geom)Returns KML OracleClob object for the java.sql.Struct Geometry Object.static oracle.jdbc.OracleClobto_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 voidtoKML(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.SQLExceptionjava.io.IOExceptionDataExceptionjava.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.ExceptionDeprecated.Returns KML CLOB object for the oracle.sql.STRUCT Object with srsNameSpace and srsAlias.- Parameters:
geom-srsNameSpace-srsAlias-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.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.ExceptionDeprecated.Returns KML CLOB object for the java.sql.Struct Object with srsNameSpace and srsAlias.- Parameters:
geom-srsNameSpace-srsAlias-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.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.ExceptionDeprecated.Returns KML String object for the oracle.sql.STRUCT Geometry Object with srsNameSpace and srsAlias.- Parameters:
geom-srsNameSpace-srsAlias-- Returns:
- String
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.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.ExceptionReturns KML String object for the java.sql.Struct Geometry Object with srsNameSpace and srsAlias.- Parameters:
geom-srsNameSpace-srsAlias-- Returns:
- String
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.lang.Exception
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(oracle.sql.STRUCT geom) throws java.sql.SQLException, java.io.IOExceptionDeprecated.Returns KML String object for the oracle.sql.STRUCT Geometry Object.- Parameters:
geom-- Returns:
- String
- Throws:
java.sql.SQLExceptionjava.io.IOException
-
to_KMLGeometry
public static java.lang.String to_KMLGeometry(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOExceptionReturns KML String object for the java.sql.Struct Geometry Object.- Parameters:
geom-- Returns:
- String
- Throws:
java.sql.SQLExceptionjava.io.IOException
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(oracle.sql.STRUCT geom) throws java.sql.SQLException, java.io.IOException, java.lang.ExceptionDeprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)instead.Returns KML CLOB object for the oracle.sql.STRUCT Geometry Object.- Parameters:
geom-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.lang.Exception
-
to_KMLGeometryCLOB
public static oracle.sql.CLOB to_KMLGeometryCLOB(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOException, java.lang.ExceptionDeprecated.Useto_KMLGeometryCLOBJS(java.sql.Struct)instead.Returns KML CLOB object for the java.sql.Struct Geometry Object.- Parameters:
geom-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.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.SQLExceptionjava.io.IOException
-
to_KMLGeometryCLOBJS
public static oracle.jdbc.OracleClob to_KMLGeometryCLOBJS(java.sql.Struct geom) throws java.sql.SQLException, java.io.IOException, java.lang.ExceptionReturns KML OracleClob object for the java.sql.Struct Geometry Object.- Parameters:
geom-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.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.ExceptionReturns KML OracleClob object for the java.sql.Struct Object with srsNameSpace and srsAlias.- Parameters:
geom-srsNameSpace-srsAlias-- Returns:
- CLOB
- Throws:
java.sql.SQLExceptionjava.io.IOExceptionjava.lang.Exception
-
-