公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.data.listFeatures
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列出指定表格資產的特徵。
傳回通話結果。如果指定回呼,則為空值。
用量 | 傳回 |
---|
ee.data.listFeatures(asset, params, callback) | api.ListFeaturesResponse |
引數 | 類型 | 詳細資料 |
---|
asset | 字串 | 要查詢的資料表資產 ID。 |
params | api.ProjectsAssetsListFeaturesNamedParameters | 物件,內含要求參數,可能的值如下:
pageSize (數字):每頁的結果數上限 (選用),預設為 1000。 |
pageToken (字串):選用符記,用於識別伺服器應傳回的結果頁面,通常取自回應物件。 |
region (字串):如有,則為定義查詢區域的幾何圖形,指定為 GeoJSON 幾何圖形字串 (請參閱 RFC 7946)。 |
filter (以半形逗號分隔的字串):如有,則指定其他簡單的屬性篩選條件 (請參閱 https://google.aip.dev/160)。 |
|
callback | 函式 (選用) | 選用回呼,會使用兩個參數呼叫:第一個是產生的特徵清單,第二個是失敗時的錯誤字串。如未提供,系統會同步發出呼叫。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eLists features for a specified table asset using its ID.\u003c/p\u003e\n"],["\u003cp\u003eAllows optional parameters for filtering, pagination, and regional queries.\u003c/p\u003e\n"],["\u003cp\u003eReturns an \u003ccode\u003eapi.ListFeaturesResponse\u003c/code\u003e object containing the features or null if a callback function is provided.\u003c/p\u003e\n"],["\u003cp\u003eOptionally accepts a callback function for asynchronous execution, receiving the features and potential errors.\u003c/p\u003e\n"]]],["The core functionality involves listing features for a specified table asset. The `ee.data.listFeatures` function accepts an asset ID (`asset`) and request parameters (`params`). Parameters include `pageSize`, `pageToken`, `region`, and `filter`. It can optionally take a `callback` function for asynchronous calls. The function returns a `api.ListFeaturesResponse` object containing the features list, or it returns `null` if a callback is provided. It retrieves information from an asset and allows filtering and pagination.\n"],null,["# ee.data.listFeatures\n\n\u003cbr /\u003e\n\nList features for a given table asset.\n\n\u003cbr /\u003e\n\nReturns the call results. Null if a callback is specified.\n\n| Usage | Returns |\n|-----------------------------------------------------|--------------------------|\n| `ee.data.listFeatures(asset, params, `*callback*`)` | api.ListFeaturesResponse |\n\n| Argument | Type | Details |\n|------------|-----------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `asset` | String | The table asset ID to query. |\n| `params` | api.ProjectsAssetsListFeaturesNamedParameters | An object containing request parameters with the following possible values: |-------------------------------------------------------------------------------------------------------------------------------------------| | ` pageSize ` (number): An optional maximum number of results per page, default is 1000. | | ` pageToken ` (string): An optional token identifying a page of results the server should return, usually taken from the response object. | | ` region ` (string): If present, a geometry defining a query region, specified as a GeoJSON geometry string (see RFC 7946). | | ` filter ` (comma-separated strings): If present, specifies additional simple property filters (see https://google.aip.dev/160). | |\n| `callback` | Function, optional | An optional callback, called with two parameters: the first is the resulting list of features and the second is an error string on failure. If not supplied, the call is made synchronously. |"]]