ee.FeatureCollection.getString

Extrayez une propriété d'une entité.

UtilisationRenvoie
FeatureCollection.getString(property)Chaîne
ArgumentTypeDétails
ceci : objectÉlémentFonctionnalité à partir de laquelle extraire la propriété.
propertyChaînePropriété à extraire.

Exemples

Éditeur de code (JavaScript)

// A FeatureCollection with a string property value.
var fc = ee.FeatureCollection([]).set('string_property', 'Abies magnifica');

// Fetch the string property value as an ee.String object.
print('String property value as ee.String', fc.getString('string_property'));

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)

# A FeatureCollection with a string property value.
fc = ee.FeatureCollection([]).set('string_property', 'Abies magnifica')

# Fetch the string property value as an ee.String object.
print('String property value as ee.String:',
      fc.getString('string_property').getInfo())