Class GeorSpatialReference


  • public class GeorSpatialReference
    extends java.lang.Object
    Since:
    release specific (what release of product did this appear in)
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double[] getColDenominator()
      Get Column Denominator
      java.lang.Double[] getColNumerator()
      Get Column Numerator
      java.lang.Double getColumnOff()
      Get column offset
      java.lang.Double getColumnRMS()
      Get column RMS
      java.lang.Double getColumnScale()
      Get column scale
      java.lang.String getModelCoordinateLocation()
      Get model coordinate location
      java.lang.Integer getModelSRID()
      Get model SRID
      java.lang.Double getModelTotalRMS()
      Get model total RMS
      java.lang.Double[] getRowDenominator()
      Get Row Denominator
      java.lang.Double[] getRowNumerator()
      Get row numerator
      java.lang.Double getRowOff()
      Get row offset
      java.lang.Double getRowRMS()
      Get row RMS
      java.lang.Double getRowScale()
      Get row scale
      java.lang.Double[] getSpatialResolutions()
      Get Spatial Resolution of all dimensions:
      java.lang.Double getSpatialTolerance()
      Get spatial tolerance
      java.lang.Double getTotalRMS()
      Get total RMS
      java.lang.Double getXOff()
      Get x offset
      java.lang.Double getXRMS()
      Get x RMS
      java.lang.Double getXScale()
      Get x scale
      java.lang.Double getYOff()
      Get x offset
      java.lang.Double getYRMS()
      Get y RMS
      java.lang.Double getYScale()
      Get y scale
      java.lang.Double getZOff()
      Get z offset
      java.lang.Double getZRMS()
      Get z RMS
      java.lang.Double getZScale()
      Get z scale
      java.lang.Boolean isOrthoRectified()
      Get true if spatial orthorectified is orthorectified, false if is not
      java.lang.Boolean isRectified()
      Get true if spatial reference is rectified, false if is not
      java.lang.Boolean isReferenced()
      Get true if spatial reference is referenced, false if is not
      static GeorSpatialReference loadJS​(java.sql.Struct srs)  
      void setColDenominator​(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
      Create an array with Column Denominator
      void setColNumerator​(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
      Create an array with Column Numerator
      void setColumnOff​(java.lang.Double value)
      Set column offset
      void setColumnRMS​(java.lang.Double value)
      Set column RMS
      void setColumnScale​(java.lang.Double value)
      Set column scale
      void setModelCoordinateLocation​(java.lang.String value)
      Set model coordinate location
      void setModelSRID​(java.lang.Integer value)
      Set model SRID
      void setModelTotalRMS​(java.lang.Double value)
      Set model total RMS
      void setOrthoRectified​(java.lang.Boolean value)
      Set true if spatial orthorectified is referenced, false if is not
      void setRectified​(java.lang.Boolean value)
      Set true if spatial reference is referenced, false if is not
      void setReferenced​(java.lang.Boolean value)
      Set true if spatial reference is referenced, false if is not
      void setRowDenominator​(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
      Create an array with Row Denominator
      void setRowNumerator​(java.lang.Integer pType, java.lang.Integer nVars, java.lang.Integer order, java.util.Vector coefficients)
      Create an array with Row Numerator
      void setRowOff​(java.lang.Double value)
      Set row offset
      void setRowRMS​(java.lang.Double value)
      Set row RMS
      void setRowScale​(java.lang.Double value)
      Set row scale
      void setSpatialResolutions​(java.lang.Double xResolution, java.lang.Double yResolution, java.lang.Double tResolution, java.lang.Double zResolution)
      Set Spatial X, Y, T (time) and Z (hight) Resolutions
      void setSpatialTolerance​(java.lang.Double value)
      Set spatial tolerance
      void setTotalRMS​(java.lang.Double value)
      Set total RMS
      void setXOff​(java.lang.Double value)
      Set z offset
      void setXRMS​(java.lang.Double value)
      Set x RMS
      void setXScale​(java.lang.Double value)
      Set x scale
      void setYOff​(java.lang.Double value)
      Set y offset
      void setYRMS​(java.lang.Double value)
      Set y RMS
      void setYScale​(java.lang.Double value)
      Set y scale
      void setZOff​(java.lang.Double value)
      Set z offset
      void setZRMS​(java.lang.Double value)
      Set z RMS
      void setZScale​(java.lang.Double value)
      St z scale
      java.sql.Struct toSTRUCT​(java.sql.Connection conn)
      Converts the Spatial Reference information into an Oracle JDBC Struct object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeorSpatialReference

        public GeorSpatialReference()
      • GeorSpatialReference

        public GeorSpatialReference​(SpatialReferenceInfo srs)
                             throws GeoRasterException
        GeorSpatialReference support the representation of a SDO_GEOR_SRS type and can be instantiated from a SpatialRerenceInfo object or from scracth.
        Parameters:
        srs - an SpatialReferenceInfo object
        Throws:
        GeoRasterException
    • Method Detail

      • isRectified

        public java.lang.Boolean isRectified()
        Get true if spatial reference is rectified, false if is not
        Returns:
        boolean value whether rectified
      • setRectified

        public void setRectified​(java.lang.Boolean value)
        Set true if spatial reference is referenced, false if is not
        Parameters:
        value - whether rectifed
      • isReferenced

        public java.lang.Boolean isReferenced()
        Get true if spatial reference is referenced, false if is not
        Returns:
        boolean value whether spatial referenced
      • setReferenced

        public void setReferenced​(java.lang.Boolean value)
        Set true if spatial reference is referenced, false if is not
        Parameters:
        value - boolean value whether spatial referenced
      • isOrthoRectified

        public java.lang.Boolean isOrthoRectified()
        Get true if spatial orthorectified is orthorectified, false if is not
        Returns:
        boolean value whether orthorectifed
      • setOrthoRectified

        public void setOrthoRectified​(java.lang.Boolean value)
        Set true if spatial orthorectified is referenced, false if is not
        Parameters:
        value - whether orthorectified
      • getModelCoordinateLocation

        public java.lang.String getModelCoordinateLocation()
        Get model coordinate location
        Returns:
        value of the model coordinate location
      • setModelCoordinateLocation

        public void setModelCoordinateLocation​(java.lang.String value)
        Set model coordinate location
        Parameters:
        value - "CENTER" "UPPERLEFT"
      • getModelSRID

        public java.lang.Integer getModelSRID()
        Get model SRID
        Returns:
        model SRID
      • setModelSRID

        public void setModelSRID​(java.lang.Integer value)
        Set model SRID
        Parameters:
        value - model SRID
      • getSpatialTolerance

        public java.lang.Double getSpatialTolerance()
        Get spatial tolerance
        Returns:
        spatial tolerance
      • setSpatialTolerance

        public void setSpatialTolerance​(java.lang.Double value)
        Set spatial tolerance
        Parameters:
        value - spatial tolerance
      • setSpatialResolutions

        public void setSpatialResolutions​(java.lang.Double xResolution,
                                          java.lang.Double yResolution,
                                          java.lang.Double tResolution,
                                          java.lang.Double zResolution)
        Set Spatial X, Y, T (time) and Z (hight) Resolutions
        Parameters:
        xResolution - Spatial resolution on X
        yResolution - Spatial resolution on Y
        tResolution - Spatial resolution on T
        zResolution - Spatial resolution on Z
      • getSpatialResolutions

        public java.lang.Double[] getSpatialResolutions()
        Get Spatial Resolution of all dimensions:
        Returns:
        on return[0] X Resolution on return[1] Y Resolution on return[2] T (time) Resolution on return[3] Z (hight) Resolution
      • getRowOff

        public java.lang.Double getRowOff()
        Get row offset
        Returns:
        value of row offset
      • setRowOff

        public void setRowOff​(java.lang.Double value)
        Set row offset
        Parameters:
        value - row offset
      • getColumnOff

        public java.lang.Double getColumnOff()
        Get column offset
        Returns:
        value of column offset
      • setColumnOff

        public void setColumnOff​(java.lang.Double value)
        Set column offset
        Parameters:
        value - column offset
      • getXOff

        public java.lang.Double getXOff()
        Get x offset
        Returns:
        value of X offset
      • setXOff

        public void setXOff​(java.lang.Double value)
        Set z offset
        Parameters:
        value - Z offset
      • getYOff

        public java.lang.Double getYOff()
        Get x offset
        Returns:
        value of X offset
      • setYOff

        public void setYOff​(java.lang.Double value)
        Set y offset
        Parameters:
        value - Y offset
      • getZOff

        public java.lang.Double getZOff()
        Get z offset
        Returns:
        value of Z offset
      • setZOff

        public void setZOff​(java.lang.Double value)
        Set z offset
        Parameters:
        value - Z offset
      • getRowScale

        public java.lang.Double getRowScale()
        Get row scale
        Returns:
        value of row scale
      • setRowScale

        public void setRowScale​(java.lang.Double value)
        Set row scale
        Parameters:
        value - row scale
      • getColumnScale

        public java.lang.Double getColumnScale()
        Get column scale
        Returns:
        value of column scale
      • setColumnScale

        public void setColumnScale​(java.lang.Double value)
        Set column scale
        Parameters:
        value - column scale
      • getXScale

        public java.lang.Double getXScale()
        Get x scale
        Returns:
        value of X scale
      • setXScale

        public void setXScale​(java.lang.Double value)
        Set x scale
        Parameters:
        value - X scale
      • getYScale

        public java.lang.Double getYScale()
        Get y scale
        Returns:
        value of Y scale
      • setYScale

        public void setYScale​(java.lang.Double value)
        Set y scale
        Parameters:
        value - Y scale
      • getZScale

        public java.lang.Double getZScale()
        Get z scale
        Returns:
        value of Z scale
      • setZScale

        public void setZScale​(java.lang.Double value)
        St z scale
        Parameters:
        value - Z scale
      • getRowRMS

        public java.lang.Double getRowRMS()
        Get row RMS
        Returns:
        value of row RMS
      • setRowRMS

        public void setRowRMS​(java.lang.Double value)
        Set row RMS
        Parameters:
        value - row RMS
      • getColumnRMS

        public java.lang.Double getColumnRMS()
        Get column RMS
        Returns:
        value of column RMS
      • setColumnRMS

        public void setColumnRMS​(java.lang.Double value)
        Set column RMS
        Parameters:
        value - column RMS
      • getTotalRMS

        public java.lang.Double getTotalRMS()
        Get total RMS
        Returns:
        value of total RMS
      • setTotalRMS

        public void setTotalRMS​(java.lang.Double value)
        Set total RMS
        Parameters:
        value - total RMS
      • getRowNumerator

        public java.lang.Double[] getRowNumerator()
        Get row numerator
        Returns:
        values of row numberator
      • setRowNumerator

        public void setRowNumerator​(java.lang.Integer pType,
                                    java.lang.Integer nVars,
                                    java.lang.Integer order,
                                    java.util.Vector coefficients)
                             throws GeoRasterException
        Create an array with Row Numerator
        Parameters:
        pType - polynomial type
        nVars - polynomial number of variables
        order - polynomial order
        coefficients - polynomial coeeficients
        Throws:
        GeoRasterException
      • getColNumerator

        public java.lang.Double[] getColNumerator()
        Get Column Numerator
        Returns:
        on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
      • setColNumerator

        public void setColNumerator​(java.lang.Integer pType,
                                    java.lang.Integer nVars,
                                    java.lang.Integer order,
                                    java.util.Vector coefficients)
                             throws GeoRasterException
        Create an array with Column Numerator
        Parameters:
        pType - polynomial type
        nVars - polynomial number of variables
        order - polynomial order
        coefficients - polynomial coeeficients
        Throws:
        GeoRasterException
      • getRowDenominator

        public java.lang.Double[] getRowDenominator()
        Get Row Denominator
        Returns:
        on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
      • setRowDenominator

        public void setRowDenominator​(java.lang.Integer pType,
                                      java.lang.Integer nVars,
                                      java.lang.Integer order,
                                      java.util.Vector coefficients)
                               throws GeoRasterException
        Create an array with Row Denominator
        Parameters:
        pType - polynomial type
        nVars - polynomial number of variables
        order - polynomial order
        coefficients - polynomial coeeficients
        Throws:
        GeoRasterException
      • getColDenominator

        public java.lang.Double[] getColDenominator()
        Get Column Denominator
        Returns:
        on return[0] polynomial type on return[1] polynomial number of variables on return[2] polynomial order on return[3..N] coefficients polynomial coeeficients
      • setColDenominator

        public void setColDenominator​(java.lang.Integer pType,
                                      java.lang.Integer nVars,
                                      java.lang.Integer order,
                                      java.util.Vector coefficients)
                               throws GeoRasterException
        Create an array with Column Denominator
        Parameters:
        pType - polynomial type
        nVars - polynomial number of variables
        order - polynomial order
        coefficients - polynomial coeeficients
        Throws:
        GeoRasterException
      • getXRMS

        public java.lang.Double getXRMS()
        Get x RMS
        Returns:
        value of X RMS
      • setXRMS

        public void setXRMS​(java.lang.Double value)
        Set x RMS
        Parameters:
        value - X RMS
      • getYRMS

        public java.lang.Double getYRMS()
        Get y RMS
        Returns:
        value of Y RMS
      • setYRMS

        public void setYRMS​(java.lang.Double value)
        Set y RMS
        Parameters:
        value - Y RMS
      • getZRMS

        public java.lang.Double getZRMS()
        Get z RMS
        Returns:
        value of Z RMS
      • setZRMS

        public void setZRMS​(java.lang.Double value)
        Set z RMS
        Parameters:
        value - Z RMS
      • getModelTotalRMS

        public java.lang.Double getModelTotalRMS()
        Get model total RMS
        Returns:
        value of model total RMS
      • setModelTotalRMS

        public void setModelTotalRMS​(java.lang.Double value)
        Set model total RMS
        Parameters:
        value - model total RMS
      • toSTRUCT

        public java.sql.Struct toSTRUCT​(java.sql.Connection conn)
                                 throws java.sql.SQLException
        Converts the Spatial Reference information into an Oracle JDBC Struct object. You can then bind the Struct object to a SQL statment that inserts or updates the SDO_GEOR_SRS in the database.
        Parameters:
        conn - the connection to use.
        Returns:
        a java.sql.Struct object when successful; otherwise null
        Throws:
        java.sql.SQLException - on error