ee.Filter.listContains
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวกรองแบบเอกภาคหรือทวิภาคที่จะผ่านหากตัวถูกดำเนินการทางซ้ายซึ่งเป็นรายการมีตัวถูกดำเนินการทางขวา
การใช้งาน | การคืนสินค้า |
---|
ee.Filter.listContains(leftField, rightValue, rightField, leftValue) | ตัวกรอง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
leftField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftValue |
rightValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางด้านขวา ไม่ควรระบุหากมีการระบุ rightField |
rightField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการด้านขวา ไม่ควรระบุหากมีการระบุ rightValue |
leftValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftField |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a filter that checks if a list (left operand) contains a specific value (right operand).\u003c/p\u003e\n"],["\u003cp\u003eUses selectors (\u003ccode\u003eleftField\u003c/code\u003e, \u003ccode\u003erightField\u003c/code\u003e) or direct values (\u003ccode\u003eleftValue\u003c/code\u003e, \u003ccode\u003erightValue\u003c/code\u003e) to define the operands.\u003c/p\u003e\n"],["\u003cp\u003eCan be used as either a unary or binary filter depending on the arguments provided.\u003c/p\u003e\n"],["\u003cp\u003eReturns an \u003ccode\u003eee.Filter\u003c/code\u003e object that can be applied to Earth Engine collections.\u003c/p\u003e\n"]]],["This filter checks if a list (left operand) contains a specific value (right operand). It supports two operation modes: unary (using `leftField` and `rightValue`) or binary (using `leftField` and `rightField`, or `leftValue` and `rightValue`). The `leftField` and `leftValue` arguments define the list, while `rightValue` or `rightField` specify the value to be searched within the list. The result of applying the filter is a filter object.\n"],null,["# ee.Filter.listContains\n\nCreates a unary or binary filter that passes if the left operand, a list, contains the right operand.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------------------------------------|---------|\n| `ee.Filter.listContains(`*leftField* `, `*rightValue* `, `*rightField* `, `*leftValue*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------|-----------------------|---------------------------------------------------------------------------------------|\n| `leftField` | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |\n| `rightValue` | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |\n| `rightField` | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |\n| `leftValue` | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |"]]