Class MowerSurveyAlgorithm

java.lang.Object
io.fleetcoreplatform.Algorithms.MowerSurveyAlgorithm

public class MowerSurveyAlgorithm extends Object
Implements a sweep-line algorithm to generate boustrophedon (lawnmower) flight paths. These paths are standard for comprehensive aerial surveying and mapping missions.
  • Constructor Details

    • MowerSurveyAlgorithm

      public MowerSurveyAlgorithm()
  • Method Details

    • calculatePath

      public static org.postgis.Point[] calculatePath(org.postgis.Geometry polygon, double spacing, boolean zigZag)
      Calculates a zig-zag route over a specified polygon area. The algorithm runs horizontal sweep lines from the bottom to the top of the polygon's bounding box, computing the intersection segments and linking them together.
      Parameters:
      polygon - The surveyed region geometry.
      spacing - The vertical distance between parallel sweep lines (corresponds to the camera's ground footprint).
      zigZag - Defines the initial entry direction. If true, the first line goes right-to-left.
      Returns:
      An ordered array of geographical points defining the continuous flight trajectory.