ee.List.getGeometry
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Gibt die Geometrie an der angegebenen Position in der Liste zurück. Ein negativer Index zählt vom Ende der Liste aus rückwärts. Wenn der Wert keine Geometrie ist, tritt ein Fehler auf.
Nutzung | Ausgabe |
---|
List.getGeometry(index) | Geometrie |
Argument | Typ | Details |
---|
So gehts: list | Liste | |
index | Ganzzahl | |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eThis function retrieves a specific geometry from a list based on its position (index).\u003c/p\u003e\n"],["\u003cp\u003eUsing a negative index allows accessing geometries from the end of the list.\u003c/p\u003e\n"],["\u003cp\u003eAn error will be raised if the specified index doesn't contain a geometry.\u003c/p\u003e\n"]]],["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"],null,["# ee.List.getGeometry\n\nReturns 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.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------|----------|\n| List.getGeometry`(index)` | Geometry |\n\n| Argument | Type | Details |\n|--------------|---------|---------|\n| this: `list` | List | |\n| `index` | Integer | |"]]