Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["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 2023-10-06 UTC."],[[["\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. |"]]