> 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/bg/brzi-gis-sveti/qgis-convert-csv-to-shp.md).

# QGIS: преобразуване на CSV файл с точки в shapefile

Заредете CSV файл с географска ширина и дължина като точков слой в QGIS (Add Delimited Text Layer), задайте EPSG:4326 и го запишете като shapefile за импортиране.

В QGIS изберете Layer, Add Layer, Add Delimited Text Layer, посочете CSV файла, задайте колоната с географската дължина за X, а тази с географската ширина — за Y, и задайте CRS на EPSG:4326 (WGS 84). След това щракнете с десния бутон върху слоя и изберете Export, Save Features As, ESRI Shapefile. За колоните с числа, записани като текст, е необходима [още една стъпка](https://docs.geopard.tech/geopard-tutorials/bg/brzi-gis-sveti/qgis-change-string-to-number-values-in-the-shapefile.md).

{% hint style="success" %}
Пропуснете конвертирането: GeoPard импортира директно CSV и Excel файлове с резултати от почвени лабораторни анализи. [Започнете безплатно](https://app.geopard.tech/auth/sign-up?utm_source=docs\&utm_medium=cta\&utm_campaign=qgis-convert-csv-to-shp)
{% endhint %}

В урока е показано как да конвертирате CSV в SHP (shapefile). По-долу са описани стъпките за това с помощта на [QGIS](https://www.qgis.org/en/site/) — настолен софтуер.

**ВАЖНО**: Данните във формат CSV трябва да съдържат колони `longitude` и `latitude` за правилно георефериране на картата.

**СТЪПКА 1**: Започнете импортирането, като изберете „Слой“ >> „Добавяне на слой“ >> „Добавяне на слой с текст с разделители“.

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

**СТЪПКА 2**: Задайте параметрите за импортиране и щракнете върху бутона „Добавяне“.

1. Посочете пътя до CSV файла
2. Проверете разделителя на колоните — трябва да е запетая.
3. Проверете първия ред. Обикновено в него са имената на атрибутите. Той трябва да бъде изключен от разчитането на данните.
4. Изберете колоните в набора от данни с географската дължина (поле X) и географската ширина (поле Y).
5. Задайте координатната референтна система. Обикновено се използва EPSG:4326.

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

Очакваният резултат след **СТЪПКА 2** изглежда така

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

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

**СТЪПКА 3**: Стартирайте експортирането, като щракнете с „десния бутон на мишката“ >> „Експортиране“ >> „Запазване на обектите като...“

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

**СТЪПКА 4**: Задайте подходящите настройки за експортиране и щракнете върху „ОК“.

1. Посочете пътя за експортирания shapefile.
2. Задайте координатната референтна система (CRS) на EPSG:4326 — GeoPard я поддържа.

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

{% hint style="success" %}
Пропуснете конвертирането: GeoPard импортира директно CSV и Excel файлове с резултати от почвени лабораторни анализи. [Започнете безплатно](https://app.geopard.tech/auth/sign-up?utm_source=docs\&utm_medium=cta\&utm_campaign=qgis-convert-csv-to-shp)
{% endhint %}


---

# 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/bg/brzi-gis-sveti/qgis-convert-csv-to-shp.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.
