ee.Reducer.toCollection
Returns a reducer that collects its inputs into a FeatureCollection.
Usage | Returns |
---|
ee.Reducer.toCollection(propertyNames, numOptional) | Reducer |
Argument | Type | Details |
---|
propertyNames | List | The property names that will be defined on each output feature; determines the number of reducer inputs. |
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. |
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."],[[["Creates a reducer that gathers input data and organizes it into a FeatureCollection."],["Requires a list of property names to define the features within the collection."],["Allows specifying optional inputs using `numOptional`, where non-optional inputs must be non-null to avoid data drops."]]],[]]