ee.FeatureCollection.first

Zwraca pierwszy wpis z danej kolekcji.

WykorzystanieZwroty
FeatureCollection.first()Element
ArgumentTypSzczegóły
to: collectionFeatureCollectionKolekcja, z której ma zostać wybrany pierwszy wpis.

Przykłady

Edytor kodu (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());

Konfiguracja Pythona

Informacje o interfejsie Python API i używaniu geemap do interaktywnego programowania znajdziesz na stronie Środowisko Python.

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