Class GeometryFunction

    • Field Detail

      • coordSys

        protected ADQLOperand coordSys
        The coordinate system used to express the coordinates.
    • Constructor Detail

      • GeometryFunction

        protected GeometryFunction()
        Builds a geometry function with no coordinate system.
      • GeometryFunction

        protected GeometryFunction​(ADQLOperand coordSys)
                            throws java.lang.UnsupportedOperationException,
                                   java.lang.NullPointerException,
                                   java.lang.Exception
        Builds a geometry function with its coordinate system.
        Parameters:
        coordSys - A string operand which corresponds to a valid coordinate system.
        Throws:
        java.lang.UnsupportedOperationException - If this function is not associated with a coordinate system.
        java.lang.NullPointerException - If the given operand is null.
        java.lang.Exception - If the given operand is not a string.
      • GeometryFunction

        protected GeometryFunction​(GeometryFunction toCopy)
                            throws java.lang.Exception
        Builds a geometry function by copying the given one.
        Parameters:
        toCopy - The geometry function to copy.
        Throws:
        java.lang.Exception - If there is an error during the copy.
    • Method Detail

      • getCoordinateSystem

        public ADQLOperand getCoordinateSystem()
        Gets the used coordinate system.
        Returns:
        Its coordinate system.
      • setCoordinateSystem

        public void setCoordinateSystem​(ADQLOperand coordSys)
                                 throws java.lang.UnsupportedOperationException,
                                        java.lang.NullPointerException,
                                        ParseException
        Changes the coordinate system.
        Parameters:
        coordSys - Its new coordinate system.
        Throws:
        java.lang.UnsupportedOperationException - If this function is not associated with a coordinate system.
        java.lang.NullPointerException - If the given operand is null.
        ParseException - If the given operand is not a string.