ee.List.getGeometry
Returns the geometry at the specified position in list. A negative index counts backwards from the end of the list. If the value is not a geometry, an error will occur.
Usage | Returns |
---|
List.getGeometry(index) | Geometry |
Argument | Type | Details |
---|
this: list | List | |
index | Integer | |
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 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["This function retrieves a specific geometry from a list based on its position (index)."],["Using a negative index allows accessing geometries from the end of the list."],["An error will be raised if the specified index doesn't contain a geometry."]]],["Retrieves a specific geometry from a list using its index. The `index` can be a positive or negative integer, with negative values counting from the end of the list. It takes a list as input and requires an `index` argument. If the element at the specified index is a geometry, it is returned; otherwise, an error occurs. The method returns a `Geometry` object.\n"]]