ee.Image.getArray
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trích xuất một thuộc tính từ một đối tượng.
Cách sử dụng | Giá trị trả về |
---|
Image.getArray(property) | Mảng |
Đối số | Loại | Thông tin chi tiết |
---|
this: object | Phần tử | Tính năng để trích xuất thuộc tính. |
property | Chuỗi | Thuộc tính cần trích xuất. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]