ee.Join.saveBest
Returns a join that pairs each element from the first collection with a matching element from the second collection. The match with the best join measure is added to each result as an additional property. Join measures are produced when withinDistance or maxDifference filters are used as the join condition.
Usage | Returns |
---|
ee.Join.saveBest(matchKey, measureKey, outer) | Join |
Argument | Type | Details |
---|
matchKey | String | The key used to save the match. |
measureKey | String | The key used to save the measure of the join condition on the match. |
outer | Boolean, default: false | If true, primary rows without matches will be included in the result. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["The `saveBest` join pairs elements from two collections based on the best match according to a specified measure."],["A join measure, like distance or difference, is calculated when using `withinDistance` or `maxDifference` filters in the join condition."],["The best match and its corresponding measure are added as properties to the result using specified keys (`matchKey`, `measureKey`)."],["Optionally, unmatched primary elements can be included in the output by setting the `outer` parameter to `true`."]]],["This describes a join operation that pairs elements from two collections. It identifies the best match between elements based on filters like `withinDistance` or `maxDifference`, storing this match in a specified `matchKey`. The quality of the match is stored under `measureKey`. The `outer` argument determines if unmatched elements from the first collection are included in the output. The function, `ee.Join.saveBest`, returns a join object.\n"]]