ee.FeatureCollection.getString

Extrae una propiedad de un atributo.

UsoMuestra
FeatureCollection.getString(property)String
ArgumentoTipoDetalles
esta: objectElementoEs la entidad de la que se extraerá la propiedad.
propertyStringEs la propiedad que se extraerá.

Ejemplos

Editor de código (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'));

Configuración de Python

Consulta la página Entorno de Python para obtener información sobre la API de Python y el uso de geemap para el desarrollo interactivo.

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())