公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Join.inner
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回的聯結會將主要集合的元素與次要集合的相符元素配對。每個結果都有「primary」屬性,內含主要集合的元素,以及「secondary」屬性,內含次要集合的相符元素。如果指定 measureKey,聯結指標也會以屬性形式附加至物件。
用量 | 傳回 |
---|
ee.Join.inner(primaryKey, secondaryKey, measureKey) | 加入 |
引數 | 類型 | 詳細資料 |
---|
primaryKey | 字串,預設值為「primary」 | 用於儲存主要相符項目的屬性名稱。 |
secondaryKey | 字串,預設值為「secondary」 | 用於儲存次要相符項目的屬性名稱。 |
measureKey | 字串,預設值為空值 | 用於儲存聯結條件測量的選用屬性名稱。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003ePerforms an inner join between two collections based on matching keys.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new collection where each element includes the matched primary and secondary elements as properties.\u003c/p\u003e\n"],["\u003cp\u003eOptionally calculates and includes a join measure as a property if a measureKey is specified.\u003c/p\u003e\n"]]],["The `ee.Join.inner` function creates a join between two collections, pairing elements based on matching criteria. Results contain a 'primary' element and a 'secondary' element. Custom names for these properties can be specified using `primaryKey` and `secondaryKey`. An optional `measureKey` allows for storing a measure associated with the join condition in the resulting object. It returns a `Join` object.\n"],null,["# ee.Join.inner\n\nReturns a join that pairs elements from the primary collection with matching elements from the secondary collection. Each result has a 'primary' property that contains the element from the primary collection, and a 'secondary' property containing the matching element from the secondary collection. If measureKey is specified, the join measure is also attached to the object as a property.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|---------|\n| `ee.Join.inner(`*primaryKey* `, `*secondaryKey* `, `*measureKey*`)` | Join |\n\n| Argument | Type | Details |\n|----------------|------------------------------|---------------------------------------------------------------------------|\n| `primaryKey` | String, default: \"primary\" | The property name used to save the primary match. |\n| `secondaryKey` | String, default: \"secondary\" | The property name used to save the secondary match. |\n| `measureKey` | String, default: null | An optional property name used to save the measure of the join condition. |"]]