# QGIS: Konvertera CSV till SHP

Handledningen hjälper dig att konvertera CSV till SHP (shapefil). Nedan finns steg för hur du gör detta med [QGIS](https://www.qgis.org/en/site/) skrivbordsprogramvara.

**VIKTIGT**: Data i CSV-format måste innehålla `longitud` och `latitud` kolumner för att skapa korrekt georeferensiering.

**STEG 1**: Starta importprocessen via "Lager" >> "Lägg till lager" >> "Lägg till avgränsad textlager".

<figure><img src="/files/3b46d56db9a34fa5d618659615c9e6a65b4839eb" alt=""><figcaption></figcaption></figure>

**STEG 2**: Ställ in importparametrarna och klicka på knappen "Lägg till".

1. Ange sökvägen till CSV-filen
2. Kontrollera kolumnavgränsaren, den ska vara ett kommatecken.
3. Kontrollera den första raden. Vanligtvis innehåller den attributnamnen. Den måste uteslutas från parsningen.
4. Välj datasetets kolumner med data för Latitud (X) och Longitud (Y).
5. Ställ in koordinatreferenssystemet. Vanligtvis används ESPG:4326.

<figure><img src="/files/2d06ce450063dc50870f5bd630c197cac5957fb2" alt=""><figcaption></figcaption></figure>

Det förväntade resultatet efter **STEG 2** ser ut som

<figure><img src="/files/389ec84d8dd1abe601daeef543c4dcfdf6f195f2" alt=""><figcaption></figcaption></figure>

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

**STEG 3**: Starta exportflödet via högerklick >> "Exportera" >> "Spara objekt som ..."

<figure><img src="/files/603545a46de622bf3de64b6df99b68f0a97f184c" alt=""><figcaption></figcaption></figure>

**STEG 4**: Ställ in rätt exportalternativ och klicka på "OK".

1. Ange sökvägen till den exporterade shapefilen.
2. Ställ in koordinatreferenssystemet (CRS) till ESPG:4326, vilket accepteras av GeoPard.

<figure><img src="/files/05561012aa5af5d8a7d6bf23a4c61a32c442630a" 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/swe/snabba-gis-tips/qgis-konvertera-csv-till-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.
