environmentaltools.drone.process_polygon
- environmentaltools.drone.process_polygon(polygon_gps, polygon_utm, polygon_number, spacing, height, photo_interval, output_path, polygon_indices=None)[source]
Processes an individual polygon generating its flight plan.
- Parameters:
polygon_gps (shapely.geometry.Polygon) – Polygon in GPS coordinates.
polygon_utm (shapely.geometry.Polygon) – Polygon in UTM coordinates.
polygon_number (int) – Polygon number for identification.
spacing (float) – Spacing between scan lines in meters.
height (float) – Flight height in meters.
photo_interval (float) – Interval between photos in meters.
output_path (str) – Output directory path.
polygon_indices (list, optional) – Original polygon indices. Default is None.
- Returns:
(lines, waypoints) Generated lines and waypoints.
- Return type:
tuple