Объединения используются для объединения элементов из разных коллекций (например, ImageCollection
или FeatureCollection
) на основе условия, заданного ee.Filter
. Фильтр состоит из аргументов для свойств в каждой коллекции, которые связаны друг с другом. В частности, leftField
указывает свойство в основной коллекции, связанное с rightField
в вторичной коллекции. Тип фильтра (например, equals
, greaterThanOrEquals
, lessThan
и т. д.) указывает на связь между полями. Тип соединения указывает на отношения «один ко многим» или «один к одному» между элементами в коллекциях и количество совпадений, которые необходимо сохранить. Результат соединения создается функцией join.apply()
и зависит от типа соединения.
Обзор присоединения
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-25 UTC.
[null,null,["Последнее обновление: 2025-07-25 UTC."],[[["\u003cp\u003eJoins combine elements from different collections like \u003ccode\u003eImageCollection\u003c/code\u003e and \u003ccode\u003eFeatureCollection\u003c/code\u003e based on a specified condition using an \u003ccode\u003eee.Filter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.Filter\u003c/code\u003e defines the relationship between properties in the collections using \u003ccode\u003eleftField\u003c/code\u003e and \u003ccode\u003erightField\u003c/code\u003e along with a filter type like \u003ccode\u003eequals\u003c/code\u003e or \u003ccode\u003elessThan\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDifferent join types handle one-to-one or one-to-many relationships and control the number of matches retained, impacting the output produced by \u003ccode\u003ejoin.apply()\u003c/code\u003e.\u003c/p\u003e\n"]]],["Joins combine elements from different collections using an `ee.Filter` based on a specified condition. `leftField` and `rightField` define related properties within the primary and secondary collections, respectively. The filter type determines the relationship between these fields (e.g., equals, greaterThan). Join type specifies one-to-many or one-to-one relationships and the number of matches. The `join.apply()` method produces the output, which varies based on the chosen join type.\n"],null,["# Join Overview\n\nJoins are used to combine elements from different collections (e.g.\n`ImageCollection` or `FeatureCollection`) based on a condition\nspecified by an `ee.Filter`. The filter is constructed with arguments for\nthe properties in each collection that are related to each other. Specifically,\n`leftField` specifies the property in the primary collection that is related\nto the `rightField` in the secondary collection. The type of filter (e.g.\n`equals`, `greaterThanOrEquals`, `lessThan`, etc.)\nindicates the relationship between the fields. The type of join indicates one-to-many\nor one-to-one relationships between the elements in the collections and how many matches\nto retain. The output of a join is produced by `join.apply()` and will vary\naccording to the type of join."]]