公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Image.getArray
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
從特徵擷取屬性。
用量 | 傳回 |
---|
Image.getArray(property) | 陣列 |
引數 | 類型 | 詳細資料 |
---|
這個:object | 元素 | 要從中擷取屬性的特徵。 |
property | 字串 | 要擷取的屬性。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe \u003ccode\u003egetArray()\u003c/code\u003e method extracts a specified property's value from a feature, returning it as an array.\u003c/p\u003e\n"],["\u003cp\u003eThis method is used on an \u003ccode\u003eImage\u003c/code\u003e object, requiring the feature and the property name as inputs.\u003c/p\u003e\n"]]],["The function `Image.getArray(property)` extracts a specified property from a feature (Element object). It takes the feature as the context (`this`) and a `property` string as input. The function's return type is an Array, containing the extracted property's value. This operation effectively retrieves specific data associated with a feature, making the data accessible.\n"],null,["# ee.Image.getArray\n\nExtract a property from a feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------|---------|\n| Image.getArray`(property)` | Array |\n\n| Argument | Type | Details |\n|----------------|---------|-------------------------------------------|\n| this: `object` | Element | The feature to extract the property from. |\n| `property` | String | The property to extract. |"]]