> 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/cze/rychle-gis-tipy/qgis-zmena-hodnot-z-textu-na-cislo-v-shapefile.md).

# QGIS: Změna hodnot z textu na číslo v shapefile

V QGIS můžete převést řetězec na číslo pomocí nástroje „Kalkulačka polí“. Nejprve otevřete atributovou tabulku vrstvy, kterou chcete upravit. Poté klikněte na tlačítko „Otevřít kalkulačku polí“. Do pole „Výraz“ napište „to\_real(“ a za něj název pole, které obsahuje řetězec, který chcete převést, a nakonec uzavírací závorku. Například pro převod textového pole s názvem „string\_field“ na číselné pole zadejte do pole Výraz „to\_real("string\_field")“. Můžete také upravit název výstupního pole a datový typ výběrem příslušných možností. Nakonec klikněte na „OK“ a převod dokončíte. Původní textové pole zůstane v atributové tabulce, zatímco nové číselné pole bude do tabulky přidáno.

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

1. Otevřete „Vlastnosti“
2. Přejděte na „Kalkulačka polí“
3. Zaškrtněte „Aktualizovat existující pole“
4. to\_real("attributeName")
5. Uložit úpravy
6. Stejné zopakujte pro každý atribut

   <figure><img src="/files/532372932b7acf56e3c8ba7d5adc00cfe32740f8" 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/cze/rychle-gis-tipy/qgis-zmena-hodnot-z-textu-na-cislo-v-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.
