# QGIS: Konvertér CSV til SHP

Tutorialen hjælper med at konvertere CSV til SHP (shapefile). Nedenfor er trin til, hvordan man gør dette ved hjælp af [QGIS](https://www.qgis.org/en/site/) desktop-software.

&#x20;**VIGTIGT**: Dataene i CSV-format skal indeholde `længdegrad` og `breddegrad` kolonner for at lave korrekt georeferencering.&#x20;

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

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FBIPPWIDU0mD58A6YRiQ6%2Fimage.png?alt=media&#x26;token=05d2513d-fcac-45df-ae9e-936a9885dcf8" alt=""><figcaption></figcaption></figure>

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

1. Angiv stien til CSV-filen
2. Tjek kolonneafgrænseren, den bør være et komma.
3. Tjek første række. Normalt indeholder den attributnavnene. Den skal udelukkes fra fortolkningen.
4. Vælg datasættets kolonner med breddegrad (X) og længdegrad (Y)-data.
5. Sæt koordinatreference-systemet. Normalt bruges EPSG:4326.

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FVCf5bL5Xrykq2aEZ6Q9W%2Fimage.png?alt=media&#x26;token=09a5224d-f75b-4336-9a7d-e323ae7ce3a8" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FN9vX1veE9xsSk1bJVXg1%2Fimage.png?alt=media&#x26;token=9f1d50c7-c4de-4ede-a113-d3b46e9f629e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FIG2NnPRO4DWyfeMREAIf%2Fimage.png?alt=media&#x26;token=d6bd1615-0b2a-47fb-8347-651362da38bb" alt=""><figcaption></figcaption></figure>

**TRIN 3**: Start eksportflowet via et klik med "Højre musetast" >> "Eksporter" >> "Gem objekter som ..."

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2F1luGOh5y7DjyPBHFmVTw%2Fimage.png?alt=media&#x26;token=7335197f-0bf2-4c94-8fd0-8a45689c9b43" alt=""><figcaption></figcaption></figure>

**TRIN 4**: Konfigurer de korrekte eksportindstillinger og klik "Ok".

1. Angiv stien til den eksporterede shapefile.
2. Sæt koordinatreference-systemet (CRS) til EPSG:4326, som er accepteret af GeoPard.

<figure><img src="https://1581835146-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FxRyKrrluAvCZzifIbFKG%2Fimage.png?alt=media&#x26;token=43b1e035-c165-4aca-807c-97c2bd43e445" alt=""><figcaption></figcaption></figure>
