> 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/pl/szybkie-wskazowki-gis/qgis-zmien-wartosci-tekstowe-na-liczbowe-w-pliku-shapefile.md).

# QGIS: Zmień wartości tekstowe na liczbowe w pliku shapefile

W QGIS możesz zamienić ciąg tekstowy na liczbę za pomocą narzędzia „Kalkulator pól”. Najpierw otwórz tabelę atrybutów dla warstwy, którą chcesz zmodyfikować. Następnie kliknij przycisk „Otwórz kalkulator pól”. W polu „Wyrażenie” wpisz „to\_real(”, a potem nazwę pola zawierającego ciąg, który chcesz przekształcić, i zamknij nawias. Na przykład, aby zamienić pole tekstowe o nazwie „string\_field” na pole liczbowe, wpisz „to\_real("string\_field")” w polu Wyrażenie. Możesz też zmienić nazwę pola wyjściowego i typ danych, wybierając odpowiednie opcje. Na koniec kliknij „OK”, aby zakończyć konwersję. Oryginalne pole tekstowe pozostanie w tabeli atrybutów, a nowe pole liczbowe zostanie do niej dodane.

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

1. Otwórz „Właściwości”
2. Przejdź do „Kalkulatora pól”
3. Zaznacz „Aktualizuj istniejące pole”
4. to\_real("attributeName")
5. Zapisz edycje
6. Powtórz to samo dla każdego atrybutu

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


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.geopard.tech/geopard-tutorials/pl/szybkie-wskazowki-gis/qgis-zmien-wartosci-tekstowe-na-liczbowe-w-pliku-shapefile.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
