ee.Feature.select
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลือกพร็อพเพอร์ตี้จากฟีเจอร์ตามชื่อหรือนิพจน์ทั่วไปที่เข้ากันได้กับ RE2 และเปลี่ยนชื่อได้ (ไม่บังคับ)
การใช้งาน | การคืนสินค้า |
---|
Feature.select(propertySelectors, newProperties, retainGeometry) | องค์ประกอบ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ input | องค์ประกอบ | ฟีเจอร์ที่ใช้เลือกพร็อพเพอร์ตี้ |
propertySelectors | รายการ | รายการชื่อหรือนิพจน์ทั่วไปที่ระบุพร็อพเพอร์ตี้ที่จะเลือก |
newProperties | รายการ (ค่าเริ่มต้น: null) | ชื่อใหม่ที่ไม่บังคับสำหรับพร็อพเพอร์ตี้เอาต์พุต ต้องตรงกับจำนวนพร็อพเพอร์ตี้ที่เลือก |
retainGeometry | บูลีน ค่าเริ่มต้น: จริง | หากเป็นเท็จ ผลลัพธ์จะมีเรขาคณิตเป็น NULL |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eSelects properties from a given feature based on provided names or regular expressions.\u003c/p\u003e\n"],["\u003cp\u003eOptionally allows renaming the selected properties using a separate list.\u003c/p\u003e\n"],["\u003cp\u003eBy default, retains the original geometry of the feature, but this can be disabled to return only properties.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new Element containing only the selected and potentially renamed properties.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.select\n\nSelects properties from a feature by name or RE2-compatible regex and optionally renames them.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------|---------|\n| Feature.select`(propertySelectors, `*newProperties* `, `*retainGeometry*`)` | Element |\n\n| Argument | Type | Details |\n|---------------------|------------------------|---------------------------------------------------------------------------------------------|\n| this: `input` | Element | The feature to select properties from. |\n| `propertySelectors` | List | A list of names or regexes specifying the properties to select. |\n| `newProperties` | List, default: null | Optional new names for the output properties. Must match the number of properties selected. |\n| `retainGeometry` | Boolean, default: true | When false, the result will have a NULL geometry. |"]]