ee.List

Construit une liste.

UtilisationRenvoie
ee.List(list)Liste
ArgumentTypeDétails
listList<Object>|ObjectListe ou objet calculé.

Exemples

Éditeur de code (JavaScript)

print(ee.List([]));  // []
print(ee.List([null]));  // [null]
print(ee.List([true]));  // [true]
print(ee.List([1]));  // [1]
print(ee.List([ee.Number(1)]));  // [1]
print(ee.List(['a']));  // ["a"]
print(ee.List([[]]));  // [[]]
print(ee.List([ee.List([])]));  // [[]]
print(ee.List([[], [[]], [1, [], 'a']]));  // [[],[[]],[1,[],"a"]]

Configuration de Python

Consultez la page Environnement Python pour en savoir plus sur l'API Python et sur l'utilisation de geemap pour le développement interactif.

import ee
import geemap.core as geemap

Colab (Python)

print(ee.List([]).getInfo())  # []
print(ee.List([None]).getInfo())  # [None]
print(ee.List([True]).getInfo())  # [True]
print(ee.List([1]).getInfo())  # [1]
print(ee.List([ee.Number(1)]).getInfo())  # [1]
print(ee.List(['a']).getInfo())  # ['a']
print(ee.List([[]]).getInfo())  # [[]]
print(ee.List([ee.List([])]).getInfo())  # [[]]
print(ee.List([[], [[]], [1, [], 'a']]).getInfo())  # [[], [[]], [1, [], 'a']]