> 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/ru/bystrye-sovety-po-gis/qgis-izmenit-strokovye-znacheniya-na-chislovye-v-shapefile.md).

# QGIS: изменить строковые значения на числовые в shapefile

В QGIS вы можете преобразовать строку в число с помощью инструмента «Полевой калькулятор». Сначала откройте таблицу атрибутов для слоя, который вы хотите изменить. Затем нажмите кнопку «Открыть полевой калькулятор». В поле «Выражение» введите «to\_real(», затем имя поля, содержащего строку, которую нужно преобразовать, и закрывающую скобку. Например, чтобы преобразовать строковое поле с именем «string\_field» в числовое поле, введите «to\_real("string\_field")» в поле «Выражение». Также можно изменить имя выходного поля и тип данных, выбрав соответствующие параметры. Наконец, нажмите «ОК», чтобы завершить преобразование. Исходное строковое поле останется в таблице атрибутов, а новое числовое поле будет добавлено в таблицу.

<figure><img src="/files/4caa424a5e9300f3f6042e2224206ae2f4f553c3" alt=""><figcaption></figcaption></figure>

1. Откройте «Свойства»
2. Перейдите в «Полевой калькулятор»
3. Отметьте «Обновить существующее поле»
4. to\_real("attributeName")
5. Сохранить изменения
6. Повторите то же самое для каждого атрибута

   <figure><img src="/files/9ef9f30c27e0bc0bcd91f065ef6f4b68dd3bc64d" 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/ru/bystrye-sovety-po-gis/qgis-izmenit-strokovye-znacheniya-na-chislovye-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.
