> 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/qgis-split-multi-field-shapefiles.md).

# QGIS：1つのシェープファイルを圃場ごとのファイルに分割する

QGISの「ベクタレイヤを分割」を使って、農場全体の圃場境界または収量のシェープファイルを圃場ごとに分割し、圃場属性に基づいてファイル名を付けます。

［ベクター］→［データ管理ツール］→［ベクタレイヤを分割］を実行し、一意のIDとしてフィールド名の属性を選択すると、QGISはフィールドごとに1つのファイルを出力フォルダーに作成します。まず各フィールドに一意の名前が付いていることを確認してください。同じ名前のフィールドが2つあると、1つのファイルにまとめられます。

{% hint style="success" %}
分割した圃場境界をアップロードして、すべての圃場を1つの地図で確認しましょう。 [無料で始める](https://app.geopard.tech/auth/sign-up?utm_source=docs\&utm_medium=cta\&utm_campaign=qgis-split-multi-field-shapefiles)
{% endhint %}

1つのシェープファイルに複数の圃場ポリゴンが含まれている場合は、インポート前に分割してください。GeoPardでは、シェープファイル1つにつき圃場境界を1つインポートします。このQGISワークフローを使うと、ファイルを効率よく整え、インポート時の問題を防げます。

### 始める前に

* レイヤに一意の圃場名またはIDが設定されていることを確認します。
* あらかじめ空の出力フォルダーを作成します。
* 削除 `/`, `\`などの特殊文字をフィールド名から削除します。

### QGISで複数圃場を含むシェープファイルを分割する

#### 1. シェープファイルをQGISで開く

ソースのシェープファイルをQGISで開きます。複数の圃場ポリゴンが含まれていることを確認します。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-e3dd4154a0aa47992eceb8f407ba5f92e8dd4cf6%2Fdocs-img-4ed34c5ae7.png?alt=media" alt=""><figcaption><p>複数のポリゴンを含む圃場境界レイヤの初期状態。</p></figcaption></figure>

#### 2. 分割ツールを開く

レイヤのオプションを開き、 **ベクタレイヤを分割**.

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-7861ecaaf39cda53162b2e62265b672ae337dcaa%2Fdocs-img-313ab32c2f.png?alt=media" alt=""><figcaption><p>を選択します。分割ワークフローが開きます。</p></figcaption></figure>

#### 3. レイヤ、属性、出力フォルダーを選択する

次の項目を設定します。

1. 分割するレイヤ。
2. 圃場ごとに一意の属性。
3. 出力先のディレクトリ。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-864da743afef35aa00fb8c8c13a865e6ec50e815%2Fdocs-img-922d2d7500.png?alt=media" alt=""><figcaption><p>ソースレイヤと分割に使用する属性を選択します。</p></figcaption></figure>

#### 4. 出力形式を設定する

出力形式として **ESRI Shapefile** を選択します。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2Fgit-blob-e839d90dc894e215f61cba11466875f72184cb69%2Fdocs-img-1f0a97b316.png?alt=media" alt=""><figcaption><p>出力フォルダーとシェープファイル形式を設定します。</p></figcaption></figure>

#### 5. 分割を実行する

［ **実行**］をクリックします。QGISはポリゴンごとに1つのファイルを作成します。各ポリゴンは個別の圃場境界シェープファイルになります。

#### 6. 必要に応じて `.gpkg` ファイルを `.shp` に変換する

QGISの設定によっては、最初に `.gpkg` ファイルが作成される場合があります。その場合は各ファイルを開き、次の形式で再保存します。 **ESRI Shapefile**.

1. レイヤを右クリックします。
2. ［ **エクスポート** → **地物を保存**.
3. ］を選択します。 **ESRI Shapefile**.
4. ファイル名と保存先を設定します。
5. 必要に応じて不要な属性を削除します。

### 結果

これで、圃場ごとに1つのシェープファイルが用意できました。各ファイルはGeoPardへの圃場境界のアップロードに使用できます。これにより、設定にかかる時間を短縮し、不要なインポートのやり直しを減らせます。

### QGIS関連ガイド

* [QGIS：CSVをSHPに変換する](https://docs.geopard.tech/geopard-tutorials/jpn/giskuikkuhinto/qgis-convert-csv-to-shp.md)
* [QGIS：シェープファイルを再投影する](https://docs.geopard.tech/geopard-tutorials/jpn/giskuikkuhinto/qgis-reproject-shapefile.md)

{% hint style="success" %}
分割した圃場境界をアップロードして、すべての圃場を1つの地図で確認しましょう。 [無料で始める](https://app.geopard.tech/auth/sign-up?utm_source=docs\&utm_medium=cta\&utm_campaign=qgis-split-multi-field-shapefiles)
{% endhint %}


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.geopard.tech/geopard-tutorials/jpn/giskuikkuhinto/qgis-split-multi-field-shapefiles.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
