# QGIS: Spremeni vrednosti iz niza v število v shapefilu

V QGIS lahko niz pretvorite v število z orodjem »Izračun polj«. Najprej odprite atributno tabelo za sloj, ki ga želite spremeniti. Nato kliknite gumb »Odpri izračun polj«. V polje »Izraz« vnesite »to\_real(« in za njim ime polja, ki vsebuje niz, ki ga želite pretvoriti, ter zaključno oklepaj. Na primer, če želite nizovno polje z imenom »string\_field« pretvoriti v številsko polje, v polje »Izraz« vnesite »to\_real("string\_field")«. Ime izhodnega polja in podatkovni tip lahko tudi spremenite z izbiro ustreznih možnosti. Na koncu kliknite »V redu«, da dokončate pretvorbo. Izvorno nizovno polje bo ostalo v atributni tabeli, novo številsko polje pa bo dodano v tabelo.

<figure><img src="/files/5896a0e6487b99be2661fac648d0eccd3ec9673a" alt=""><figcaption></figcaption></figure>

1. Odprite »Lastnosti«
2. Pojdite na »Izračun polj«
3. Označite »Posodobi obstoječe polje«
4. to\_real("attributeName")
5. Shrani urejanje
6. Ponovite enako za vsak atribut

   <figure><img src="/files/8b8d72cf352a60bf6fcb1fbfd80953b764823bfc" 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/svn/hitri-gis-namigi/qgis-spremeni-vrednosti-iz-niza-v-stevilo-v-shapefilu.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.
