ee.Filter.withinDistance
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างตัวกรองแบบเอกภาคหรือทวิภาคที่ผ่านหากเรขาคณิตทางซ้ายอยู่ภายในระยะทางที่ระบุของเรขาคณิตทางขวา หากใช้เป็นเงื่อนไขการรวม ระบบจะใช้ระยะทางนี้เป็นมาตรวัดการรวม
การใช้งาน | การคืนสินค้า |
---|
ee.Filter.withinDistance(distance, leftField, rightValue, rightField, leftValue, maxError) | ตัวกรอง |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
distance | ทศนิยม | ระยะทางสูงสุดที่ตัวกรองจะแสดงผลเป็นจริง |
leftField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftValue |
rightValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางด้านขวา ไม่ควรระบุหากมีการระบุ rightField |
rightField | สตริง ค่าเริ่มต้น: null | ตัวเลือกสำหรับตัวถูกดำเนินการด้านขวา ไม่ควรระบุหากมีการระบุ rightValue |
leftValue | ออบเจ็กต์ ค่าเริ่มต้น: null | ค่าของตัวถูกดำเนินการทางซ้าย ไม่ควรระบุหากมีการระบุ leftField |
maxError | ErrorMargin (ไม่บังคับ) | ข้อผิดพลาดในการฉายซ้ำสูงสุดที่อนุญาตระหว่างการใช้ตัวกรอง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eDetermines if one geometry lies within a specified distance of another, useful for filtering and spatial joins.\u003c/p\u003e\n"],["\u003cp\u003eOperates on two geometries, allowing specification by field or direct value for both.\u003c/p\u003e\n"],["\u003cp\u003eDistance is a crucial parameter defining the maximum allowable separation for the filter to pass.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility with optional error margin control during reprojection.\u003c/p\u003e\n"]]],["This functionality generates a filter based on the proximity of two geometries. It verifies if a left geometry falls within a designated `distance` of a right geometry. The `distance` parameter dictates the threshold for a true result. It accepts parameters such as `leftField`, `rightValue`, `rightField`, `leftValue`, and `maxError`. The filter's operation can be defined via fields or direct values for each geometry. When used in a join, it measures join proximity by the specified `distance`.\n"],null,["# ee.Filter.withinDistance\n\nCreates a unary or binary filter that passes if the left geometry is within a specified distance of the right geometry. If used as a join condition, this distance is used as a join measure.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Filter.withinDistance(distance, `*leftField* `, `*rightValue* `, `*rightField* `, `*leftValue* `, `*maxError*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------|-----------------------|---------------------------------------------------------------------------------------|\n| `distance` | Float | The maximum distance for which the filter will return true. |\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. |\n| `maxError` | ErrorMargin, optional | The maximum reprojection error allowed during filter application. |"]]