公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Join.saveAll
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回一个联接,该联接将第一个集合中的每个元素与第二个集合中的一组匹配元素配对。匹配项列表会作为附加属性添加到每个结果中。如果指定了 measureKey,则每个匹配项都会附带其联接指标的值。当 withinDistance 或 maxDifference 过滤条件用作联接条件时,系统会生成联接度量。
用法 | 返回 |
---|
ee.Join.saveAll(matchesKey, ordering, ascending, measureKey, outer) | 加入 |
参数 | 类型 | 详细信息 |
---|
matchesKey | 字符串 | 用于保存匹配列表的属性名称。 |
ordering | 字符串,默认值:null | 用于对匹配项列表进行排序的属性。 |
ascending | 布尔值,默认值:true | 排序是否为升序。 |
measureKey | 字符串,默认值:null | 一个可选的属性名称,用于保存每次匹配时连接条件的衡量标准。 |
outer | 布尔值,默认值:false | 如果为 true,则结果中将包含没有匹配项的主行。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[[["\u003cp\u003ePairs elements from the first collection with matching elements from the second, adding the matches as a new property.\u003c/p\u003e\n"],["\u003cp\u003eOptionally sorts the list of matches based on a specified property and order.\u003c/p\u003e\n"],["\u003cp\u003eAllows for saving the measure of the join condition (e.g., distance or difference) on each match if specified.\u003c/p\u003e\n"],["\u003cp\u003eCan include primary elements without matches in the results by setting the \u003ccode\u003eouter\u003c/code\u003e parameter to true.\u003c/p\u003e\n"]]],["The `ee.Join.saveAll` function creates a join between two collections, pairing each element from the first with matching elements from the second. Matched elements are stored as a list under a specified `matchesKey`. Optionally, this list can be sorted by a given property (`ordering`) in ascending or descending order. If a join condition with distance or difference measures is used, the measurement values are attached using the `measureKey`. If `outer` is set to true elements from first collection without matches will be included in the result.\n"],null,["# ee.Join.saveAll\n\nReturns a join that pairs each element from the first collection with a group of matching elements from the second collection. The list of matches is added to each result as an additional property. If measureKey is specified, each match has the value of its join measure attached. Join measures are produced when withinDistance or maxDifference filters are used as the join condition.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------|---------|\n| `ee.Join.saveAll(matchesKey, `*ordering* `, `*ascending* `, `*measureKey* `, `*outer*`)` | Join |\n\n| Argument | Type | Details |\n|--------------|-------------------------|-----------------------------------------------------------------------------------------|\n| `matchesKey` | String | The property name used to save the matches list. |\n| `ordering` | String, default: null | The property on which to sort the matches list. |\n| `ascending` | Boolean, default: true | Whether the ordering is ascending. |\n| `measureKey` | String, default: null | An optional property name used to save the measure of the join condition on each match. |\n| `outer` | Boolean, default: false | If true, primary rows without matches will be included in the result. |"]]