公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Feature.toDictionary
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
從特徵擷取屬性做為字典。
用量 | 傳回 |
---|
Feature.toDictionary(properties) | 字典 |
引數 | 類型 | 詳細資料 |
---|
這個:element | 元素 | 要從中擷取屬性的特徵。 |
properties | 清單,預設值為空值 | 要擷取的屬性清單。預設為所有非系統屬性。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003etoDictionary()\u003c/code\u003e method extracts properties from a feature and returns them as a dictionary.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify a list of properties to extract, or extract all non-system properties by default.\u003c/p\u003e\n"],["\u003cp\u003eThis method operates on an Element object representing the feature.\u003c/p\u003e\n"]]],["The `toDictionary` method extracts properties from a feature, returning them as a dictionary. It takes a feature `element` and an optional list of `properties` as input. If no list is provided, it defaults to extracting all non-system properties. The method's output is a dictionary containing the specified or default properties and their values.\n"],null,["# ee.Feature.toDictionary\n\nExtract properties from a feature as a dictionary.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------|------------|\n| Feature.toDictionary`(`*properties*`)` | Dictionary |\n\n| Argument | Type | Details |\n|-----------------|---------------------|---------------------------------------------------------------------------|\n| this: `element` | Element | The feature to extract the property from. |\n| `properties` | List, default: null | The list of properties to extract. Defaults to all non-system properties. |"]]