ee.Feature.select
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בוחר מאפיינים מתכונה לפי שם או ביטוי רגולרי שתואם ל-RE2, ויש אפשרות לשנות את השם שלהם.
שימוש | החזרות |
---|
Feature.select(propertySelectors, newProperties, retainGeometry) | רכיב |
ארגומנט | סוג | פרטים |
---|
זה: input | רכיב | התכונה שממנה בוחרים את הנכסים. |
propertySelectors | רשימה | רשימה של שמות או ביטויי Regular Expression שמציינים את המאפיינים שרוצים לבחור. |
newProperties | רשימה, ברירת מחדל: null | שמות חדשים אופציונליים למאפייני הפלט. המספר הזה צריך להיות זהה למספר המאפיינים שנבחרו. |
retainGeometry | בוליאני, ברירת מחדל: true | אם הערך הוא false, התוצאה תכלול גיאומטריה מסוג NULL. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]