Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.Feature.toArray
Stay organized with collections
Save and categorize content based on your preferences.
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."],[[["\u003cp\u003e\u003ccode\u003eFeature.toArray()\u003c/code\u003e generates a numerical array from specified object properties.\u003c/p\u003e\n"],["\u003cp\u003eThe function requires a Feature object and a list of property selectors as input.\u003c/p\u003e\n"],["\u003cp\u003eAll selected properties of the object must contain numerical values for array creation.\u003c/p\u003e\n"]]],["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"],null,["# ee.Feature.toArray\n\nCreates an array from the given properties of an object, which must all be numbers.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------|---------|\n| Feature.toArray`(properties)` | Array |\n\n| Argument | Type | Details |\n|-----------------|---------|---------------------------------------------------|\n| this: `feature` | Feature | The object from which to select array properties. |\n| `properties` | List | The property selectors for each array element. |"]]