Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
[[["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\u003e\u003ccode\u003eflatten()\u003c/code\u003e transforms a FeatureCollection of FeatureCollections into a single FeatureCollection.\u003c/p\u003e\n"],["\u003cp\u003eIt's used to simplify nested collections for easier analysis and data access.\u003c/p\u003e\n"],["\u003cp\u003eThis function is helpful when dealing with results from operations like \u003ccode\u003ereduceRegions()\u003c/code\u003e applied across image collections.\u003c/p\u003e\n"],["\u003cp\u003eThe output of \u003ccode\u003eflatten()\u003c/code\u003e is a FeatureCollection with all the features from the nested collections combined.\u003c/p\u003e\n"]]],["The `flatten()` method transforms a nested `FeatureCollection` of `FeatureCollections` into a single, flat `FeatureCollection`. It takes a `FeatureCollection` as input and returns a flattened `FeatureCollection`. This allows for the metadata of features within the nested collections to be viewed, which is not possible with unflattened collections. An example demonstrates calculating mean climate variables for counties per climate surface timestep and then flattening the resulting nested collection.\n"],null,[]]