ee.Feature.toDictionary
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 các thuộc tính từ một đối tượng dưới dạng từ điển.
Cách sử dụng | Giá trị trả về |
---|
Feature.toDictionary(properties) | Từ điển |
Đối số | Loại | Thông tin chi tiết |
---|
this: element | Phần tử | Tính năng để trích xuất thuộc tính. |
properties | Danh sách, mặc định: null | Danh sách các thuộc tính cần trích xuất. Theo mặc định, tất cả các thuộc tính không phải của hệ thống. |
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\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. |"]]