> For the complete documentation index, see [llms.txt](https://docs.geopard.tech/geopard-tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geopard.tech/geopard-tutorials/dnk/korte-gis-tips/qgis-yield-data-manipulations.md). Agents can also search and read this documentation through its [MCP server](https://docs.geopard.tech/geopard-tutorials/~gitbook/mcp).

# QGIS: Udbyttedatamanipulation

Forbered og rens udbyttedata i QGIS, før du importerer eller analyserer dem i GeoPard.

OVERSIGT<br>

Vejledning med trinvis beskrivelse af, hvordan du løser følgende problemer med data fra en udbyttemonitor:

1. Manglende projektionsfil (.prj) i shapefilen
2. Anvend konverteringsregler på alle attributter i shapefilen (baseret på eksemplet med konvertering fra kg/ha til bu/ac)

<br>

Softwaren, der skal bruges, er QGIS ([LINK](https://qgis.org/en/site/forusers/download.html)).

Download og installation er påkrævet.

### MANGLENDE PROJEKTIONSFIL

1. Åbn shapefilen med udbyttedata. Træk filen ind i QGIS-vinduet.
2. Shapefilen bliver tilgængelig for videre bearbejdning i panelet Lag.

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-9c157f438f9f4950d9ae10e37298edffce466f9b%2Fdocs-img-bda4841cfb.png?alt=media)

3. Start lagringsprocessen
4. 1. Højreklik på shapefilen
   2. Vælg Export -> Save Feature As ...

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-f9de6a17509d5df31a0ba47be6e661a2c320937c%2Fdocs-img-3f1e039d63.png?alt=media)

<br>

4. Vælg
5. 1. Format -> ESRI Shapefile,
   2. Filename -> klik på …, og vælg den ønskede mappe og det ønskede filnavn,
   3. CRS -> EPSG:4326
   4. Encoding -> UTF8
   5. Add saved file to map (valgfrit, hvis du vil se den direkte i QGIS)
   6. Geometry type -> Point

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-72b3eb69d8254fdc1eb937a0e4ae987c7dddf21f%2Fdocs-img-53147391d5.png?alt=media)

5. Klik på Ok
6. Der oprettes en ekstra shapefil med de samme udbyttedata. Projektionsfilen (.prj) er blevet tilføjet.

\ <br>

### KONVERTERING FRA KG/HA TIL BU/AC

<br>

1. Højreklik på shapefilen, og vælg Open Attribute Table

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-46489005ffb8827c065a24c10af7e252b372f8d9%2Fdocs-img-b3ff8a28aa.png?alt=media)

2. Klik på Open field calculator

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-458eae7cac9eba15e35fc030efedaeedfa0b9359%2Fdocs-img-95efb68a40.png?alt=media)

3. Opret et nyt felt
4. 1. Markér Create a new field
   2. Angiv Output field name -> DryYieldBu
   3. Vælg Output field type -> Decimal number (real)
   4. Skift Precision -> 4
   5. Indtast reglen for at konvertere kg/ha til bu/ac -> "Dry\_Yield" \* 0.0149

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-b9b6836786a9461e6bd1d9e51332ed9d47166d51%2Fdocs-img-70bdf54181.png?alt=media)

4. Klik på Ok
5. Attributten DryYieldBu er blevet tilføjet i tabellen

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-ba2c4cd031eeba6773e628754db489a44237bf83%2Fdocs-img-2f073bcef8.png?alt=media)

6. Gem ændringerne
7. 1. Højreklik på den relevante shapefil
   2. Vælg Toggle Editing

\
\
\ <br>

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-48b965189c811b22feb779888f058bdedae267ab%2Fdocs-img-167770d397.png?alt=media)

7. Bekræft, at ændringerne skal gemmes

![](https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-edaabaae1e2c4daf85483bd456eaede002278b5d%2Fdocs-img-21cd42ee81.png?alt=media)

Den relevante shapefil er ikke længere markeret med en blyant. Dataene i shapefilen er blevet opdateret.


---

# 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://docs.geopard.tech/geopard-tutorials/dnk/korte-gis-tips/qgis-yield-data-manipulations.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.
