> 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/jpn/giskuikkuhinto/qgisshpufairunowoni.md).

# QGIS：シェープファイル内の文字列を数値に変換

QGISでは、「フィールド計算機」ツールを使って文字列を数値に変換できます。まず、変更したいレイヤーの属性テーブルを開きます。次に、「フィールド計算機を開く」ボタンをクリックします。「式」ボックスに、変換したい文字列を含むフィールド名の前に「to\_real(」を入力し、最後に右括弧を付けます。たとえば、「string\_field」という名前の文字列フィールドを数値フィールドに変換するには、「式」ボックスに「to\_real("string\_field")」と入力します。必要に応じて、適切なオプションを選択して出力フィールド名やデータ型を変更することもできます。最後に、「OK」をクリックして変換を完了します。元の文字列フィールドは属性テーブルに残り、新しい数値フィールドがテーブルに追加されます。

<figure><img src="/files/9dde0faad477b24d7becbd59c5bb75c97422ad12" alt=""><figcaption></figcaption></figure>

1. 「プロパティ」を開く
2. 「フィールド計算機」に移動する
3. 「既存フィールドを更新」にチェックを入れる
4. to\_real("attributeName")
5. 編集を保存
6. 各属性について同じ操作を繰り返す

   <figure><img src="/files/a2de8544b4362cc4668eae799644740286887802" 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/jpn/giskuikkuhinto/qgisshpufairunowoni.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.
