Announcement: On November 13, 2024, all users will need to use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require an exception.
Stay organized with collections
Save and categorize content based on your preferences.
To save only the first match for each element in a collection, use an
ee.Join.saveFirst(). The saveFirst() join functions in an
equivalent way to the saveAll() join, except for each element in the
primary collection, it simply saves the first element from the
secondary collection matching the condition specified in the
ee.Filter. Unmatched elements in the primary collection
are dropped. Unless a sorting property and an order are supplied (as in the
saveAll example), the first element saved might be
any of the elements in the list found by saveAll() with the same filter.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-05-26 UTC."],[[["`ee.Join.saveFirst()` is used to retain only the first matching element from a secondary collection for each element in a primary collection during a join."],["This join operates similarly to `ee.Join.saveAll()`, but it only stores the first match found, potentially dropping other matching elements and any unmatched elements in the primary collection."],["Without specifying a sorting property and order, the first saved element may be arbitrary among the potential matches."]]],[]]