การรวมใช้เพื่อรวมองค์ประกอบจากคอลเล็กชันต่างๆ (เช่น ImageCollection
หรือ FeatureCollection
) ตามเงื่อนไขที่ระบุโดย ee.Filter
ตัวกรองสร้างขึ้นด้วยอาร์กิวเมนต์สําหรับพร็อพเพอร์ตี้ในแต่ละคอลเล็กชันที่เกี่ยวข้องกัน กล่าวโดยละเอียดคือ leftField
จะระบุพร็อพเพอร์ตี้ในคอลเล็กชันหลักที่เกี่ยวข้องกับ rightField
ในคอลเล็กชันรอง ประเภทตัวกรอง (เช่น equals
, greaterThanOrEquals
, lessThan
ฯลฯ)
ระบุความสัมพันธ์ระหว่างช่อง ประเภทการเข้าร่วมจะระบุความสัมพันธ์แบบ 1: หลายรายการหรือแบบ 1: 1 ระหว่างองค์ประกอบในคอลเล็กชันและจำนวนการจับคู่ที่จะเก็บไว้ เอาต์พุตของการรวมจะสร้างขึ้นโดย join.apply()
และจะแตกต่างกันไปตามประเภทของการรวม
ภาพรวมการเข้าร่วม
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eJoins combine elements from different collections like \u003ccode\u003eImageCollection\u003c/code\u003e and \u003ccode\u003eFeatureCollection\u003c/code\u003e based on a specified condition using an \u003ccode\u003eee.Filter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.Filter\u003c/code\u003e defines the relationship between properties in the collections using \u003ccode\u003eleftField\u003c/code\u003e and \u003ccode\u003erightField\u003c/code\u003e along with a filter type like \u003ccode\u003eequals\u003c/code\u003e or \u003ccode\u003elessThan\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDifferent join types handle one-to-one or one-to-many relationships and control the number of matches retained, impacting the output produced by \u003ccode\u003ejoin.apply()\u003c/code\u003e.\u003c/p\u003e\n"]]],["Joins combine elements from different collections using an `ee.Filter` based on a specified condition. `leftField` and `rightField` define related properties within the primary and secondary collections, respectively. The filter type determines the relationship between these fields (e.g., equals, greaterThan). Join type specifies one-to-many or one-to-one relationships and the number of matches. The `join.apply()` method produces the output, which varies based on the chosen join type.\n"],null,["# Join Overview\n\nJoins are used to combine elements from different collections (e.g.\n`ImageCollection` or `FeatureCollection`) based on a condition\nspecified by an `ee.Filter`. The filter is constructed with arguments for\nthe properties in each collection that are related to each other. Specifically,\n`leftField` specifies the property in the primary collection that is related\nto the `rightField` in the secondary collection. The type of filter (e.g.\n`equals`, `greaterThanOrEquals`, `lessThan`, etc.)\nindicates the relationship between the fields. The type of join indicates one-to-many\nor one-to-one relationships between the elements in the collections and how many matches\nto retain. The output of a join is produced by `join.apply()` and will vary\naccording to the type of join."]]