Interface Point

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Array getData()
      Get the data associated with this point
      Point getNext()
      Retrieves the next point within a multipoint if any
      Point getPrev()
      Retrieves the previous point within a multipoint if any
      double getX()
      Return the x coordinate for the point.
      double getY()
      Return the y coordinate for the point
      void setData​(Array arr)
      Sets the data array of the point.
      void setNext​(Point next)
      Sets the next point in a multipoint
      void setPrev​(Point prev)
      Set the previous point in a multipoint
      Point setupPoint​(NetcdfDataset dataset, Variable variable, int index)
      Given a dataset, construct a point from the variable which holds points and the index as given.
      void setX​(double x)
      Sets the x coordinate of the point.
      void setY​(double y)
      Set the y coordinate of the point.
    • Method Detail

      • getData

        Array getData()
        Get the data associated with this point
        Specified by:
        getData in interface SimpleGeometry
        Returns:
        data
      • getX

        double getX()
        Return the x coordinate for the point.
        Returns:
        x of the point
      • getY

        double getY()
        Return the y coordinate for the point
        Returns:
        y of the point
      • getNext

        Point getNext()
        Retrieves the next point within a multipoint if any
        Returns:
        next point if it exists, null if not
      • getPrev

        Point getPrev()
        Retrieves the previous point within a multipoint if any
        Returns:
        previous point if it exists null if not
      • setData

        void setData​(Array arr)
        Sets the data array of the point.
        Specified by:
        setData in interface SimpleGeometry
        Parameters:
        arr - the array which will be the points new data array
      • setX

        void setX​(double x)
        Sets the x coordinate of the point.
        Parameters:
        x - coordinate of the point
      • setY

        void setY​(double y)
        Set the y coordinate of the point.
        Parameters:
        y - coordinate of the point
      • setNext

        void setNext​(Point next)
        Sets the next point in a multipoint
      • setPrev

        void setPrev​(Point prev)
        Set the previous point in a multipoint
      • setupPoint

        Point setupPoint​(NetcdfDataset dataset,
                         Variable variable,
                         int index)
        Given a dataset, construct a point from the variable which holds points and the index as given.
        Parameters:
        dataset - Where the point variable resides
        variable - Which holds point information
        index - for Indexing within the polygon variable
        Returns:
        the constructed Point with associated data