Class KML2


  • public class KML2
    extends java.lang.Object
    • Field Detail

      • _conn

        protected static java.sql.Connection _conn
      • _srsNameSpace

        protected static java.lang.String _srsNameSpace
      • _srsAlias

        protected static java.lang.String _srsAlias
    • Constructor Detail

      • KML2

        public KML2()
    • 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
        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
        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.
        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.
        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