ee.FeatureCollection.first

Retorna a primeira entrada de uma determinada coleção.

UsoRetorna
FeatureCollection.first()Elemento
ArgumentoTipoDetalhes
isso: collectionFeatureCollectionA coleção de onde selecionar a primeira entrada.

Exemplos

Editor de código (JavaScript)

// A global power plant FeatureCollection.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

print('The first feature (power plant) in the collection', fc.first());

Configuração do Python

Consulte a página Ambiente Python para informações sobre a API Python e como usar geemap para desenvolvimento interativo.

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

# A global power plant FeatureCollection.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

print('The first feature (power plant) in the collection:')
pprint(fc.first().getInfo())