公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.listAssets
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回资产集合或文件夹中内容的列表,该列表位于包含
assets
数组和可选
nextPageToken
的对象中。
用法 | 返回 |
---|
ee.data.listAssets(parent, params, callback) | api.ListAssetsResponse |
参数 | 类型 | 详细信息 |
---|
parent | 字符串 | 要列出的集合或文件夹的 ID。 |
params | api.ProjectsAssetsListAssetsNamedParameters,可选 | 一个包含可选请求参数的对象,可具有以下可能的值:
pageSize (字符串)要返回的结果数。如果未指定,则返回所有结果。 |
pageToken (字符串)要返回的结果页面的令牌。 |
filter (字符串)要应用的其他过滤查询。查询示例:properties.my_property>=1 AND properties.my_property<2 AND startTime >= "2019-01-01T00:00:00.000Z" AND endTime < "2020-01-01T00:00:00.000Z" AND intersects("{'type':'Point','coordinates':[0,0]}") 如需了解如何构建查询,请参阅 https://google.aip.dev/160。 |
view (字符串)指定在列表中返回的详细信息量。“FULL”(默认)表示所有图片属性,或“BASIC”。 |
|
callback | 函数(可选) | 如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eRetrieves the contents within an Earth Engine asset collection or folder, returning an object containing an \u003ccode\u003eassets\u003c/code\u003e array and potentially a \u003ccode\u003enextPageToken\u003c/code\u003e for accessing further results.\u003c/p\u003e\n"],["\u003cp\u003eAccepts the parent collection/folder ID, optional parameters like page size and filters, and an optional callback function for asynchronous execution.\u003c/p\u003e\n"],["\u003cp\u003eEnables customization of the query by allowing users to filter results based on properties, time ranges, or geographic intersections using the \u003ccode\u003efilter\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eOffers two viewing options, "FULL" for comprehensive image property details and "BASIC" for a more concise representation.\u003c/p\u003e\n"],["\u003cp\u003eFacilitates navigation through large result sets via pagination, utilizing \u003ccode\u003epageSize\u003c/code\u003e to limit results per page and \u003ccode\u003enextPageToken\u003c/code\u003e to access subsequent pages.\u003c/p\u003e\n"]]],[],null,["# ee.data.listAssets\n\n\u003cbr /\u003e\n\nReturns a list of the contents in an asset collection or folder, in an object that includes an `assets` array and an optional `nextPageToken`.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------|------------------------|\n| `ee.data.listAssets(parent, `*params* `, `*callback*`)` | api.ListAssetsResponse |\n\n| Argument | Type | Details |\n|------------|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | String | The ID of the collection or folder to list. |\n| `params` | api.ProjectsAssetsListAssetsNamedParameters, optional | An object containing optional request parameters with the following possible values: |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` pageSize ` (string) The number of results to return. If not specified, all results are returned. | | ` pageToken ` (string) The token for the page of results to return. | | ` filter ` (string) An additional filter query to apply. Example query: `properties.my_property\u003e=1 AND properties.my_property\u003c2 AND startTime \u003e= \"2019-01-01T00:00:00.000Z\" AND endTime \u003c \"2020-01-01T00:00:00.000Z\" AND intersects(\"{'type':'Point','coordinates':[0,0]}\")` See https://google.aip.dev/160 for how to construct a query. | | ` view ` (string) Specifies how much detail is returned in the list. Either \"FULL\" (default) for all image properties or \"BASIC\". | |\n| `callback` | Function, optional | If not supplied, the call is made synchronously. |"]]