# QGIS: Konvertér CSV til SHP

Vejledningen hjælper med at konvertere CSV til SHP (shapefil). Nedenfor er trinene til, hvordan du gør dette ved hjælp af [QGIS](https://www.qgis.org/en/site/) desktopsoftware.

**VIGTIGT**: Data i CSV-format skal indeholde `længdegrad` og `breddegrad` kolonner for at lave den korrekte georeferencemapping.

**TRIN 1**: Start importprocessen ved at bruge "Lag" >> "Tilføj lag" >> "Tilføj afgrænset tekstlag".

<figure><img src="/files/a34110a22c83dd47cd0788fed97d8eecf99aecce" alt=""><figcaption></figcaption></figure>

**TRIN 2**: Konfigurer importparametrene, og klik på knappen "Tilføj".

1. Angiv stien til CSV-filen
2. Tjek kolonneadskillelsen, den skal være et komma.
3. Tjek første række. Normalt indeholder den feltnavnene. Den skal udelades fra analysen.
4. Vælg datasætkolonnerne med breddegrad (X) og længdegrad (Y).
5. Angiv det koordinatreference-system. Normalt bruges ESPG:4326.

<figure><img src="/files/fe71afdac03bdb3273dfb9bab5d477054a461b6c" alt=""><figcaption></figcaption></figure>

Det forventede resultat efter **TRIN 2** ser sådan ud

<figure><img src="/files/155a5dbc21f462df1eadb3aa7b95303606053a8b" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1093eb4e5ff327c13a9a749b711e46e0c951a7f8" alt=""><figcaption></figcaption></figure>

**TRIN 3**: Start eksporten via højreklik >> "Eksport" >> "Gem objekter som ..."

<figure><img src="/files/4fcbf9fe0e978b1348060b9f427991f3f37d35ca" alt=""><figcaption></figcaption></figure>

**TRIN 4**: Konfigurer de korrekte eksportindstillinger, og klik på "OK".

1. Angiv stien til den eksporterede shapefil.
2. Angiv koordinatreferencesystemet (CRS) til ESPG:4326, som GeoPard accepterer.

<figure><img src="/files/9fa1657b4f85ac6bcefc7fba126532c1cedd423e" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.geopard.tech/geopard-tutorials/dnk/gis-kviktips/qgis-konverter-csv-til-shp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
