公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.listFeatures
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
列出指定表格资产的功能。
返回调用结果。如果指定了回调,则为 null。
用法 | 返回 |
---|
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 | 函数(可选) | 一个可选的回调函数,使用两个参数调用:第一个参数是生成的特征列表,第二个参数是失败时的错误字符串。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]