> For the complete documentation index, see [llms.txt](https://support.senterasensors.com/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.senterasensors.com/home/fieldagent/fieldagent/fieldagent-mobile/create-a-flight-plan-from-planter-data-in-qgis.md).

# Create a flight plan from planter data in QGIS

This article goes through how to create a flight plan in Fieldagent mobile from planter data when using QGIS

1. Download [QGIS](https://qgis.org/download/) .

2. Open QGIS, In order to view planter data you need to export the planter data as a shapefile.

3. Drag planter data shapefile(s) (.shp) into the QGIS map menu. In addition, as an option you can add satellite base layer to the map ( see [satellite data instructions](#satellite-data-in-qgis) ).

4. Create a new line layer:

   1. Navigate to "Layer > Create Layer > New Shapefile Layer".

   <figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2F8ol2T8cXqH6SKjVcuKbw%2Fimage.png?alt=media&amp;token=8f8eafda-b564-4ef5-8665-7b65178f5235" alt=""><figcaption></figcaption></figure>

   b. Set an output file name.

   c. Set the "Geometry type" to "LineString".

   d. Confirm that the coordinate system is set to "EPSG:4326 - WGS 84".

   <figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FNDwC1Bm0X3gpFGFDdRAF%2Fimage.png?alt=media&amp;token=aa10aa87-f6dc-41c4-855a-a1aba1225b80" alt=""><figcaption></figcaption></figure>

5. Draw desired flight plath.

   1. Click on the pencil in the top menu to start editing the new line layer.
   2. Click the "Add feature" button to create a new line.

   <div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FsE6CV72PbzZR3idvNaML%2Fimage.png?alt=media&amp;token=9dcca49f-148e-45a0-b5a8-bd5c4d4159ed" alt=""><figcaption></figcaption></figure></div>

   c. Optional - if your planter data is in a straight line of points, use the snapping toolbar to snap to the points. To turn on the snapping toolbar right click in the empty space in the top menu and check "Snapping Toolbar". To turn on snapping click on the magnet button and select "vertex" as the snapping option.

   <div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FnW9pNfpVwErkXsxKX7V8%2Fimage.png?alt=media&amp;token=4c7728cf-fc86-462d-b3df-63e9340969db" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FXdcVEYwNSqXBard5n42T%2Fimage.png?alt=media&amp;token=31f12db8-1ce6-43d7-9eb6-952ba6717885" alt=""><figcaption></figcaption></figure></div>

&#x20;   d. Before selecting your first point, consider where you want to start your flight to avoid any structures or power lines that may be close to the edge of the field.

&#x20;   e. Left click to start drawing a line and follow the planter points and click at the end of each pass to create a turn around point.

<figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FPG6X7uGNpbyW8zM5ujG1%2Fimage.png?alt=media&amp;token=85ecb8dc-a0c5-46f3-bc8a-81941fb5ecd8" alt=""><figcaption></figcaption></figure>

&#x20;   f. To finish the line, right click in the map.

&#x20;   g. After you are finished with the line, if you want to make any edits, use the "vertex editor".

<div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FPVJ2rKoO0CgbEIG1Yquk%2Fimage.png?alt=media&amp;token=88cb28f6-43c9-4b81-a0dd-a4922efcfc60" alt=""><figcaption></figcaption></figure></div>

&#x20;   h. After you have a flight path line that you want to use, save your edits and disable editing by clicking the pencil button again.

<div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FhVukkDNS8XKA3DVrdQtj%2Fimage.png?alt=media&amp;token=b0acf7f5-1810-479d-8af2-3c92b6a1845b" alt=""><figcaption></figcaption></figure></div>

6. Convert the line's to points.

   1. Open the processing toolbox.

   <div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FkAuImkI5aPz4kTXoz5Ue%2Fimage.png?alt=media&amp;token=d167ccdf-4ad2-41e1-93f8-0d89397488ee" alt=""><figcaption></figcaption></figure></div>

   b. Search for "Extract vertices".

   <div align="left"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FB4X3dd7m9sxGkM1AA1Ir%2Fimage.png?alt=media&amp;token=8ae029e7-cde4-47c1-b99e-cd0f1387e063" alt=""><figcaption></figcaption></figure></div>

   c. Select your line layer and save it to a shapefile.

   <figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FYzlg7Bnv9Dn3Cw3VAdmf%2Fimage.png?alt=media&amp;token=13894c95-6b99-4187-8ea1-490dbbb8fce7" alt=""><figcaption></figcaption></figure>
7. Add the coordinates and export to a csv file.

   1. In the processing toolbox search for "Add X/Y fields to layer".
   2. Set the input layer as the points layer you created.
   3. Make sure that the coordiante system is "EPSG:4326".
   4. Set the output file path and make sure to save the file as a csv.
   5. Deselect the "Open output file" option.

   <div align="center"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FWWJxvlD39FURgCQ6kSla%2Fimage.png?alt=media&amp;token=92e64ecf-3396-4312-b91c-ef4809739f93" alt=""><figcaption></figcaption></figure></div>
8. Edit your csv file to follow the expected format for the FieldAgent mobile app:

   1. Ensure the vertex index column is in order starting at 0.
   2. Delete all of the columns except for X and Y.
   3. Rearrange the columns so that they are in order of Y, X.

   <div align="center"><figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2F3DSaGdFz9w7oNbS2qztd%2Fimage.png?alt=media&amp;token=1f489b59-6c98-4b48-9839-9116735eac07" alt=""><figcaption></figcaption></figure></div>

   d. Delete the column headers and your final csv file should look like the following on image below.

   <figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FDRBMPhMsMcR8hUsbOLBl%2Fimage.png?alt=media&amp;token=6859c6e5-63fb-4b95-9924-0626083f0af3" alt=""><figcaption></figcaption></figure>
9. Import the csv file to the FieldAgent mobile app using these [instructions](/home/fieldagent/fieldagent/fieldagent-mobile/create-a-field-and-flight-plan-with-a-csv-file.md).

<h3 align="center">Satellite Data in QGIS</h3>

1. Navigate to "Plugins > Manage > Install Plugins".
2. Click on the "All" tab.
3. Search for "QuickMapServices".
4. Install the plugin.
5. QuickMapServices will be available in the "Web" menu.
6. To enable more options click "Settings > More Services > Get contributed pack".

<figure><img src="https://1827205515-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsPOYY19dQnuyPXFXGPWK%2Fuploads%2FfXGV66gkOU1Tj6imL6pb%2Fimage.png?alt=media&amp;token=97f0d1ba-d5e3-48f8-9193-2e8150653496" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.senterasensors.com/home/fieldagent/fieldagent/fieldagent-mobile/create-a-flight-plan-from-planter-data-in-qgis.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
