Skip to main content

Generates an optimized flight plan for drones to conduct precise and efficient aerial mapping

Project description

Drone Flightplan

HOT

Generates waypoints for drone and creates a flightplan


📖 Documentation: https://hotosm.github.io/drone-flightplan/

🖥️ Source Code: https://github.com/hotosm/drone-flightplan


Overview

The Drone Flightplan Generator is a Python package designed to automate the creation of flight plans for drones. This tool is essential for users needing efficient and precise aerial surveys, mapping, and imagery collection.

Installation

To install the package, use pip

pip install drone-flightplan

Usage

To get the drone waypoints for a given Geojson Polygon AOI, we can do this:

from drone_flightplan.waypoints import create_waypoint

create_waypoint(
        polygon_geojson,
        altitude_above_ground_level,
        forward_overlap,
        side_overlap,
        generate_each_points,
        generate_3d,
    )

Parameters:
  - polygon_geojson = Geojson Polygon AOI
  - altitude_above_ground_level = The height at which you want to fly the drone from ground level
  - forward_overlap = Forward Overlap you want in the imageries
  - side_overlap = Desired Side Overlap you want in the imageries
  - generate_each_points (bool) : True if you want waypoints and False if you want waylines
  - generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)

Waypoint File

DJI drones requires waypoint file. WPML route files all end with a ".kmz" suffix and are essentially archive files packed in ZIP format. After decompression of a standard WPML route file, its file structure is as follows

image

You can find more on this from the documentation here.

You can get the waypoint file following this steps:

from drone_flightplan import flightplan

flightplan.generate_flightplan(
  project_area,
  altitude_above_ground_level,
  forward_overlap,
  side_overlap,
  generate_each_points,
  generate_3d,
  output_file_path
)

Parameters:
  - polygon_geojson = Geojson Polygon AOI
  - altitude_above_ground_level = The height at which you want to fly the drone from ground level
  - forward_overlap = Forward Overlap you want in the imageries
  - side_overlap = Desired Side Overlap you want in the imageries
  - generate_each_points (bool) : True if you want waypoints and False if you want waylines
  - generate_3d : True if you want to generate 3d imageries. False if you just want 2d imageries. 3d imageries will take photos ad 3 different angles (-90, -45 and lateral 45 degree angle)
  - output_file_path: The path where you want your output flightplan

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drone_flightplan-0.3.1rc3.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

drone_flightplan-0.3.1rc3-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file drone_flightplan-0.3.1rc3.tar.gz.

File metadata

  • Download URL: drone_flightplan-0.3.1rc3.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.9.3 CPython/3.10.12

File hashes

Hashes for drone_flightplan-0.3.1rc3.tar.gz
Algorithm Hash digest
SHA256 633d38199ed01fe86733ad94b0c59f3f3b9d48bee66ed0a36efda4d3ba2dfe9b
MD5 5724cb3f367ea0e78faabec4f14e0395
BLAKE2b-256 0f6cb7e71fbecb27754831664aa0c12835d1a3c4279ee8eda2190c775d593631

See more details on using hashes here.

File details

Details for the file drone_flightplan-0.3.1rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for drone_flightplan-0.3.1rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b47b26d02c4922cc53b43fe49809ca56a454cf716be8971ac6922955d2fd524
MD5 85bdfd6f48f93f18811f84aa3ccc9642
BLAKE2b-256 fffc2541eeeabb443c655e57c72b335ab7bbe525a82615f87b331a7de64cdac8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page