Class GridZone


  • public class GridZone
    extends Object
    Grid Zone
    Author:
    wnewman, osbornb
    • Constructor Detail

      • GridZone

        public GridZone​(LongitudinalStrip strip,
                        LatitudeBand band)
        Constructor
        Parameters:
        strip - longitudinal strip
        band - latitude band
    • Method Detail

      • getStrip

        public LongitudinalStrip getStrip()
        Get the longitudinal strip
        Returns:
        longitudinal strip
      • getBand

        public LatitudeBand getBand()
        Get the latitude band
        Returns:
        latitude band
      • getNumber

        public int getNumber()
        Get the zone number
        Returns:
        zone number
      • getLetter

        public char getLetter()
        Get the band letter
        Returns:
        band letter
      • getHemisphere

        public Hemisphere getHemisphere()
        Get the hemisphere
        Returns:
        hemisphere
      • getBounds

        public Bounds getBounds()
        Get the bounds
        Returns:
        bounds
      • getName

        public String getName()
        Get the label name
        Returns:
        name
      • isWithin

        public boolean isWithin​(Bounds bounds)
        Is the provided bounds within the zone bounds
        Parameters:
        bounds - bounds
        Returns:
        true if within bounds
      • getStripExpand

        public int getStripExpand()
        Get the longitudinal strip expansion, number of additional neighbors to iterate over in combination with this strip
        Returns:
        longitudinal strip neighbor iteration expansion
      • getLines

        public List<GridLine> getLines​(GridType gridType)
        Get the grid zone lines
        Parameters:
        gridType - grid type
        Returns:
        lines
      • getLines

        public List<GridLine> getLines​(Bounds tileBounds,
                                       GridType gridType)
        Get the grid zone lines
        Parameters:
        tileBounds - tile bounds
        gridType - grid type
        Returns:
        lines
      • getDrawBounds

        public Bounds getDrawBounds​(Bounds tileBounds,
                                    GridType gridType)
        Get the draw bounds of easting and northing in meters
        Parameters:
        tileBounds - tile bounds
        gridType - grid type
        Returns:
        draw bounds or null