> For the complete documentation index, see [llms.txt](https://docs.flytbase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flytbase.com/pre-flight-modules/planning/mission-planning/importing-a-mission-using-kml-file.md).

# Importing a Mission using KML file

When it comes to capturing precision aerial data via aerial surveys, having a good definition of the required area is the starting point for any project. A **KML (Keyhole Markup Language)** file is used to display geographic data (polygon areas and linear paths).&#x20;

This feature reduces the workload of a user when planning complex mission flows with \
FlytBase. Since the format KML is widely known and accepted, it provides users with the ability to create complex missions via the FlytBase dashboard.

{% hint style="warning" %}
The KML file must not contain a flight path, waypoint actions, and curved or circular path.
{% endhint %}

#### Import KML Missions feature is a part of the Mission tab, and can be accessed when the operator clicks on 'add mission'. The user is given the option to create or import either of the two types of missions:

1. **Path mission:** To import a path mission, go to the **missions** tab, click on **'add mission',** and select the **'import mission'** option.\
   The operator can then configure the mission route and waypoint settings. Refer to the path mission tab to set the parameters for the mission.

<figure><img src="/files/WhtoPe6fJ2QZnGzjHUGq" alt=""><figcaption><p>Create a Path mission using KML import</p></figcaption></figure>

{% hint style="warning" %}
Please ensure that the KML file does not contain a closed shape when creating a Path Mission.
{% endhint %}

2\. **Grid mission:** To import a grid mission, go to the missions tab, click on '**add mission'**, and select **'import mission'** under the grid mission option. The shape created in the KML file must be a polygon to create a grid mission.

The operator may then configure the grid route and layout settings. Refer to the grid mission tab to set the parameters for the mission.

<figure><img src="/files/0FRqsgZDFNVbqmuVDZP0" alt=""><figcaption><p>Create a grid mission using KML import</p></figcaption></figure>

{% hint style="warning" %}
Please ensure that the KML file does not contain more than one shape.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flytbase.com/pre-flight-modules/planning/mission-planning/importing-a-mission-using-kml-file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
