公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Reducer.toCollection
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回一个将输入收集到 FeatureCollection 中的化简函数。
用法 | 返回 |
---|
ee.Reducer.toCollection(propertyNames, numOptional) | 缩减器 |
参数 | 类型 | 详细信息 |
---|
propertyNames | 列表 | 将在每个输出特征上定义的属性名称;决定了 reducer 输入的数量。 |
numOptional | 整数,默认值:0 | 最后 numOptional 个输入将被视为可选输入;其他输入必须为非 null,否则输入元组将被舍弃。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCreates a reducer that gathers input data and organizes it into a FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eRequires a list of property names to define the features within the collection.\u003c/p\u003e\n"],["\u003cp\u003eAllows specifying optional inputs using \u003ccode\u003enumOptional\u003c/code\u003e, where non-optional inputs must be non-null to avoid data drops.\u003c/p\u003e\n"]]],[],null,["# ee.Reducer.toCollection\n\nReturns a reducer that collects its inputs into a FeatureCollection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------|---------|\n| `ee.Reducer.toCollection(propertyNames, `*numOptional*`)` | Reducer |\n\n| Argument | Type | Details |\n|-----------------|---------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `propertyNames` | List | The property names that will be defined on each output feature; determines the number of reducer inputs. |\n| `numOptional` | Integer, default: 0 | The last numOptional inputs will be considered optional; the other inputs must be non-null or the input tuple will be dropped. |"]]