Class BoundaryHandler

java.lang.Object
noaa.coastwatch.util.trans.BoundaryHandler

public class BoundaryHandler extends Object
The BoundaryHandler class handles lines of EarthLocation data that cross boundaries in an EarthTransform and provides splitting geometries for the boundary, as well as a predictate function for testing boundary cuts.
Since:
3.5.1
Author:
Peter Hollemans
  • Constructor Details

  • Method Details

    • isBoundaryCut

      public boolean isBoundaryCut(EarthLocation a, EarthLocation b)
      Determines if a line joining two earth locations crosses a boundary cut line in this handler, according to the cut test.
      Parameters:
      a - the first earth location.
      b - the second earth location.
      Returns:
      true if the line joining the two locations is cut by a boundary, or false if not.
    • getSplitter

      public org.locationtech.jts.geom.Geometry getSplitter()
      Gets the boundary splitting geometry for this handler to perform splits on earth location lines and polygons.
      Returns:
      the geometry to use for splitting.