ee.Feature.toArray
Creates an array from the given properties of an object, which must all be numbers.
Usage | Returns |
---|
Feature.toArray(properties) | Array |
Argument | Type | Details |
---|
this: feature | Feature | The object from which to select array properties. |
properties | List | The property selectors for each array element. |
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."],[[["`Feature.toArray()` generates a numerical array from specified object properties."],["The function requires a Feature object and a list of property selectors as input."],["All selected properties of the object must contain numerical values for array creation."]]],["Transforms an object into an array of numbers. The `toArray` method, accessed via a `Feature` object, accepts a list of `properties`. These properties, all numerical, are extracted from the `Feature` object and arranged into an array. Each property selector in the list corresponds to an element in the resulting array. The method returns an `Array` containing the selected numerical values.\n"]]