ee.Feature.select
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wählt Properties aus einem Feature anhand des Namens oder eines RE2-kompatiblen regulären Ausdrucks aus und benennt sie optional um.
Nutzung | Ausgabe |
---|
Feature.select(propertySelectors, newProperties, retainGeometry) | Element |
Argument | Typ | Details |
---|
So gehts: input | Element | Die Funktion, aus der Properties ausgewählt werden sollen. |
propertySelectors | Liste | Eine Liste von Namen oder regulären Ausdrücken, die die auszuwählenden Eigenschaften angeben. |
newProperties | Liste, Standard: null | Optionale neue Namen für die Ausgabeeigenschaften. Muss mit der Anzahl der ausgewählten Properties übereinstimmen. |
retainGeometry | Boolescher Wert, Standard: „true“ | Wenn „false“, hat das Ergebnis eine NULL-Geometrie. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]