# QGIS: Convert CSV to SHP

The tutorial helps to convert CSV into SHP (shapefile). Below there are steps on how to do this using [QGIS](https://www.qgis.org/en/site/) desktop software.

**IMPORTANT**: The data in CSV format must contain `longitude` and `latitude` columns to make the proper georeference mapping.

**STEP 1**: Start the import process using "Layer" >> "Add Layer" >> "Add Delimited Text Layer".

<figure><img src="https://3272281156-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>

**STEP 2**: Configure the import parameters and click the "Add" button.

1. Define the path to the CSV file
2. Check the column separator, should be a comma.
3. Check the first row. Usually, it contains the names of the attribute. It has to be excluded from the parsing.
4. Select the dataset columns with Latitude (X) and Longitude (Y) data.
5. Set the Coordinate Reference System. Usually, ESPG:4326 is used.

<figure><img src="https://3272281156-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>

The expected result after **STEP 2** looks like

<figure><img src="https://3272281156-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://3272281156-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>

**STEP 3**: Trigger the export flow via "Right Mouse Button" click >> "Export" >> "Save Features As ..."

<figure><img src="https://3272281156-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>

**STEP 4**: Configure the proper export options and click "Ok".

1. Set the exported shapefile path.
2. Set the Coordinate Reference System (CRS) to ESPG:4326, which is acceptable by GeoPard.

<figure><img src="https://3272281156-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>


---

# 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/gis-quick-hints/qgis-convert-csv-to-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.
