ee.FeatureCollection.first

Gibt den ersten Eintrag aus einer angegebenen Sammlung zurück.

NutzungAusgabe
FeatureCollection.first()Element
ArgumentTypDetails
So gehts: collectionFeatureCollectionDie Sammlung, aus der der erste Eintrag ausgewählt werden soll.

Beispiele

Code-Editor (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());

Python einrichten

Informationen zur Python API und zur Verwendung von geemap für die interaktive Entwicklung finden Sie auf der Seite Python-Umgebung.

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