Class EarthArea.EarthAreaIterator

java.lang.Object
noaa.coastwatch.util.EarthArea.EarthAreaIterator
All Implemented Interfaces:
Iterator<int[]>
Enclosing class:
EarthArea

public class EarthArea.EarthAreaIterator extends Object implements Iterator<int[]>
The earth area iterator is used to loop over all grid squares in an earth area.
  • Constructor Details

    • EarthAreaIterator

      public EarthAreaIterator()
  • Method Details

    • hasNext

      public boolean hasNext()
      Returns true if the area has more grid squares.
      Specified by:
      hasNext in interface Iterator<int[]>
    • next

      public int[] next()
      Returns the next grid square coordinates as [lat, lon].
      Specified by:
      next in interface Iterator<int[]>
    • remove

      public void remove()
      Performs no operation.
      Specified by:
      remove in interface Iterator<int[]>