Class SimpleGeometryCS


  • public class SimpleGeometryCS
    extends Object
    Simple Geometry Coordinate System / Enhanced Dataset Implementation Forked from ucar.nc2.ft2.coverage.adapter.GridCS
    Since:
    8/9/2018
    • Method Detail

      • getGeometryType

        public GeometryType getGeometryType​(String name)
        Given a variable name, returns the type of geometry which that variable is holding
        Parameters:
        name - name of the variable
        Returns:
        geometry type associated with that variable
      • getSimpleGeometryX

        public List<CoordinateAxis> getSimpleGeometryX()
        Get a list of all simple geometry X axes.
        Returns:
        list of simple geometry X axes
      • getSimpleGeometryY

        public List<CoordinateAxis> getSimpleGeometryY()
        Get a list of all simple geometry Y axes
        Returns:
        list of simple geometry Y axes
      • getSimpleGeometryZ

        public List<CoordinateAxis> getSimpleGeometryZ()
        Get a list of all simple geometry Z axes.
        Returns:
        list of simple geometry Z axes.
      • getSimpleGeometryID

        public List<CoordinateAxis> getSimpleGeometryID()
        Get a list of all simple geometry ID axes. Simple Geometry ID axes are used for indexing into simple geometry variables.
        Returns:
        list of simple geometry ID axes
      • getDimensions

        public List<Dimension> getDimensions()
        Get a list of all dimensions in this dataset.
        Returns:
        list of dimensions.
      • getPolygon

        public Polygon getPolygon​(String name,
                                  int index)
        Given a Variable name and a geometry index returns a Polygon
        Parameters:
        name - of the data variable
        index - within the variable
        Returns:
        polygon with all associated data, null if not found
      • getPolygons

        public List<Polygon> getPolygons​(String name,
                                         int indexBegin,
                                         int indexEnd)
        Given a Variable name and a beginning index and end index, returns a list of polygon (inclusive on both sides)
      • getLine

        public Line getLine​(String name,
                            int index)
        Given a Variable name and a geometry index returns a Line
        Parameters:
        name - of the data variable
        index - within the variable
        Returns:
        line with all associated data, null if not found
      • getLines

        public List<Line> getLines​(String name,
                                   int indexBegin,
                                   int indexEnd)
        Given a Variable name and a beginning index and end index, returns a list of lines (inclusive on both sides)
      • getPoint

        public Point getPoint​(String name,
                              int index)
        Given a Variable name and a geometry index returns a Point
        Parameters:
        name - of the data variable
        index - within the variable
        Returns:
        point with all associated data, null if not found
      • getPoints

        public List<Point> getPoints​(String name,
                                     int indexBegin,
                                     int indexEnd)
        Given a Variable name and a beginning index and end index returns a list of points (inclusive on both sides)
        Parameters:
        name - of the data variable
        indexBegin - within the variable
        indexEnd - within the variable
        Returns:
        a list of points with associated data