> 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/tsu-webapuri/import-precision-agriculture-data/soil-lab-results-csv-excel-smart-import.md). Agents can also search and read this documentation through its [MCP server](https://docs.geopard.tech/geopard-tutorials/~gitbook/mcp).

# 土壌ラボ結果（CSV/Excel） - スマート取り込み

GeoPard Agricultureは、土壌ラボ結果の形式の混乱を自動スマート取り込みで真に「解決」する初のプラットフォームです。

## 概要

土壌分析のファイルでは、テンプレート、言語、列名、単位が異なることがよくあります。Smart Import は結果テーブルを検出し、属性と単位を対応付けて、各行を圃場に紐付けます。

## 対応ファイル

* CSV（`.csv`)
* Excel（`.xls`, `.xlsx`）、複数シートのブックを含む
* 1回のアップロードにつき複数ファイル（1ファイルあたり最大40 MB）
* CSV（`.csv`)
* Excel（`.xlsx`）。ブックの最初のシートのみがインポートされます。Excel 97-2003 `.xls` ファイルは、 `.xlsx` または `.csv`.
* 土壌分析結果ファイルは、ZIPアーカイブに入れず単独でアップロードしてください。
* 1回のアップロードにつき複数ファイル（1ファイルあたり最大100 MB）。
* CSV（`.csv`)
* Excel（`.xlsx`）、複数シートのブックを含む。Excel 97-2003 `.xls` ファイルは、 `.xlsx` または `.csv` に変換してください
* 1回のアップロードにつき複数ファイル（1ファイルあたり最大100 MB）
* WGS84の緯度・経度座標

## ファイルを準備する

土壌分析結果をインポートできるのは、既存のGeoPard圃場のみです。各行はキー列を使って圃場に紐付けられます。

### 1. ご利用プランのテンプレートをダウンロードする（推奨）

GeoPardのサンプリングプランで採取したサンプルの場合は、プランから作成したテンプレートをダウンロードし、サンプルと一緒に分析機関へ送付してください。テンプレートには、ゾーン（複合サンプリングプランの場合）または採取地点（コアサンプリングプランの場合）ごとに1行があり、キー列にはあらかじめ値が入力されています。分析機関は分析結果を追加するだけです。

* **1つのプラン**：圃場ページで、サンプリングプランのメニューを開き、 **データレイヤー** から **土壌分析結果用テンプレートをダウンロード（.xlsx）**.
* **複数の圃場をまとめて**： **サンプリングプラン**で、プランの生成後に **エクスポート** を開き、 **土壌分析結果用テンプレートをダウンロード（.xlsx）**.

<div><figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FNl8FpIbUSbC3VI2jAybH%2Ftemplate-button-field-page.png?alt=media&amp;token=14933c3c-2df2-4e54-b807-bb5f98e3895f" alt="Download template for lab results in the sampling plan menu on the field page"><figcaption><p>1つのプラン：圃場ページのサンプリングプランメニュー</p></figcaption></figure> <figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FD5OWXU8CUUzP4rsjFgh9%2Ftemplate-button.png?alt=media&amp;token=003ba793-b551-463a-9bcd-26560494cc2c" alt="Download template for lab results in the Export menu of Sampling Plans"><figcaption><p>複数の圃場：サンプリングプランの「エクスポート」</p></figcaption></figure></div>

分析結果を圃場に紐付ける列を選択します： **プランID** （推奨）、 **圃場名**、または両方。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FZXCS0Tljv11JqGYb7Khv%2Ftemplate-popup.png?alt=media&amp;token=9a69dcb2-f6b4-4a34-8810-7c4c1a351510" alt="Download lab results template dialog with the Plan ID and Field name options and a file preview" width="563"><figcaption><p>キー列を選択し、ファイルのプレビューを確認する</p></figcaption></figure>

テンプレートの記入例。GeoPardのキー列に、ラボで追加した結果を入力しています。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FE7UHwf5pgLhouIggIhDo%2Flab-results.png?alt=media&amp;token=43a1af8f-884c-4931-95eb-444e6ef36007" alt="Completed lab results template for two composite plans with Plan ID, Field name, Zone ID, pH KCl, Organic matter, P2O5 and K2O columns, one row per zone"><figcaption><p>複合プラン：ゾーンごとに1行</p></figcaption></figure>

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2F3P9bGJJ9YuDNdFOuw6Ua%2Fcore-plan-results.png?alt=media&amp;token=1f02a68f-8e58-4ad4-b728-7f6a03f2a81c" alt="Completed lab results template for two core plans with Plan ID, Field name, Point ID, pH KCl, Organic matter, P2O5 and K2O columns, one row per point"><figcaption><p>コアプラン：ポイントごとに1行</p></figcaption></figure>

上記の値と属性は例です。ラボから報告された単位をそのまま使用してください。

### 2. 空のテンプレートに記入する

キー列を自分で記入します。各ワークブックには記入例があり、すべての列見出しにコメントが付いています。

**ゾーン** （複合プラン）、英語版とウクライナ語版：

{% file src="/files/e4c6678b75a5870a48c741e9e12733a55ba5766b" %}

{% file src="/files/48a2cf31a4c0a343282ef77f761209222de600ef" %}

**ポイント** （コアプラン）、英語版とウクライナ語版：

{% file src="/files/a1013028544d42e83b1d732bba4badd9c0648c0d" %}

{% file src="/files/3c55c55f6a30ff20c61d79271dd5dfbcff1be46e" %}

ラボ独自のフォームを使う場合は、同じキー列を追加してください。

### キー列

| 列               | 入力する内容                                                  |
| --------------- | ------------------------------------------------------- |
| **プランID**       | GeoPardのサンプリングプランID。プランに表示されているとおりに入力します（例： `Z89DED6`). |
| **圃場名**         | GeoPardに表示されている圃場名を、一字一句そのまま入力します。                      |
| **ゾーンID** （複合）  | サンプルラベルに印字されたゾーン名をそのまま入力します（例： `1`).                    |
| **ポイントID** （コア） | サンプルラベルに印字されたポイント名をそのまま入力します（例： `1 zone 1`).            |

* **各行には、プランIDまたは圃場名のいずれかを必ず入力してください。** 両方入力することもできます。プランIDを入力すると、最も確実に照合できます。
* **ゾーンIDとポイントID：ラベルをそのまま転記します。** ラベルが複数行にわたる場合は、1つのセルにスペースで区切って入力します。下のゾーンラベルは `1`と読めるため、ゾーンIDは `1`です。ポイントラベルは `1`, `zone` と `1` の3行で記載されているため、ポイントIDは `1 zone 1`.

<div><figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FBFDREWl8dbLkfj6TRHAE%2Fplan-labels.png?alt=media&amp;token=b3a6695d-5821-4898-ab84-4a65cf2e0119" alt="Print labels dialog for a composite plan with a zone label preview that reads 1" width="527"><figcaption><p>ゾーンラベル：ゾーンIDは1</p></figcaption></figure> <figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FhjpQv0IZ0n6DumWBX9IP%2Fcore-plan-labels.png?alt=media&amp;token=f2d4454a-409e-48ba-b425-6cbd24d4b15d" alt="Print labels dialog for a core plan with a point label preview that reads 1, zone and 1 on three lines" width="471"><figcaption><p>ポイントラベル：ポイントIDは1 zone 1</p></figcaption></figure></div>

* プランのゾーンラベルが重複している、または記載されていない場合は、代わりにプランのゾーンマップにあるゾーン番号を入力してください。プランのテンプレートでは、これが自動的に行われます。
* ラボがサンプルを受け取った後は、キー値を変更しないでください。

### GeoPardプランがないサンプル

* **ポイントの座標（`Lon` / `Lat`)**）：各ポイントは、そのポイントが境界内にある圃場と照合されます。経度と緯度を入れ替えないでください。
* **WKTジオメトリ**：WKTジオメトリを入力する列を1つ用意し、圃場の境界と照合します。
* **圃場名または圃場ID**：GeoPardに表示されている圃場名をそのまま入力するか、圃場ページのURLにあるGeoPardの圃場IDを入力します。

座標を使用する例：

| サンプルID   | 経度        | 緯度        | pH KCl | 有機物（%） |
| -------- | --------- | --------- | ------ | ------ |
| CORE-001 | 10.123456 | 50.123456 | 6.4    | 3.1    |
| CORE-002 | 10.124010 | 50.123780 | 6.2    | 2.8    |

### アップロード前にファイルを確認する

1. 1行目を列ヘッダーにしてください。ヘッダーセルを結合しないでください。
2. サンプリングしたゾーンまたは地点ごとに1行を追加してください。複数のゾーンや地点を1行にまとめないでください。
3. 各分析結果を個別の列に入力し、ヘッダーに単位を記載してください（例： `P2O5 (mg/kg)`）。分析機関から報告されていない項目のセルは空欄にしてください。
4. 結果表はそのままの形式を保ってください。表内に合計、コメント、別の表を追加しないでください。
5. ゾーンの結果と地点の結果は別々のファイルに保存してください。

## 自動的に行われる処理

* 標準的でないレイアウトを含め、結果表とそのヘッダーを検出します。
* さまざまな言語で記載された一般的な分析項目名を認識します。
* 多量要素と微量要素を検出し、編集可能なマッピングのプレビューを作成します。
* 単位を検出して正規化し、通常と異なる単位や混在する単位にフラグを付けます。
* GeoPardのサンプリング計画またはファイル内の空間データを使って、サンプルを照合します。

## ファイルをインポートする

1. 「 **データをインポート** 」を開き、CSVまたはXLSXファイルを「 **データをアップロード** 」ページにドロップするか、「 **ファイルを参照**」をクリックします。分析結果は「 **土壌データ**」に表示されます。「 **確認」をクリックします。**.
2. 分析結果が照合された圃場とサンプリング計画を確認します。ファイルがサンプリング計画に属する場合は、その計画を選択します。
3. 「 **項目のマッピング**」で、各元データの項目、そのマッピング、単位を確認します。「 **マッピング済み**, **未マッピング** 」または「 **除外済み**」でフィルタリングできます。少なくとも1つの項目を含める必要があります。
4. 分析報告書と一致しないマッピングや単位を修正します。
5. 「 **確認してインポート」をクリックします。**.

{% @arcade/embed url="<https://app.arcade.software/share/s1OSpuNusYJWEslv3WdU>" flowId="s1OSpuNusYJWEslv3WdU" %}

1. 次を開きます： **データをインポート** → **ファイルをアップロード**.
2. CSVまたはXLSXファイルをページにドラッグ＆ドロップするか、 **ファイルを参照**を選択します。GeoPardがファイルを読み取り、検査結果を **土壌データ**.
3. 「 **確認** 」を選択し、 **土壌データ** 行を確認します。

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2FuRJteLntM9wxC9uUInax%2Fupload-1.png?alt=media&amp;token=abaea1ac-aa20-4e6c-ba99-72f8fd04e8a6" alt="Upload Data page with one lab report under Soil Data and the Review button next to it"><figcaption><p>検査結果は「土壌データ」に表示されます</p></figcaption></figure>

確認画面では、次の操作を行います。

1. インポート先の圃場を確認します。
2. 各圃場のサンプリング計画を確認し、必要に応じて変更します。
3. サンプリング日と分析日を設定します。分析日は必須です。
4. 属性と単位を確認します。検査機関の報告書と異なる項目は修正し、インポートしない項目はチェックを外します。
5. 「 **確定してインポート**.

<figure><img src="https://1993076779-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYICBELdyAXXebKAzfLOR%2Fuploads%2F7aiUz7J5ykFPbVr8d4DE%2Fupload-2.png?alt=media&amp;token=adf3121d-62ba-4903-8ee0-cc19580d2df8" alt="Lab report review with numbered steps: fields to import into, sampling plans, sample and analysis dates, attributes mapping, and the Confirm &#x26; import button"><figcaption><p>インポートする前に検査報告書を確認してください</p></figcaption></figure>

{% hint style="warning" %}
インポートした値を施肥などの推奨値として扱わないでください。農業上の判断を行う前に、対応付けられた属性、単位、サンプリング深度、検査方法を確認してください。
{% 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/tsu-webapuri/import-precision-agriculture-data/soil-lab-results-csv-excel-smart-import.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.
