ee.FeatureCollection.first

Menampilkan entri pertama dari kumpulan tertentu.

PenggunaanHasil
FeatureCollection.first()Elemen
ArgumenJenisDetail
ini: collectionFeatureCollectionKoleksi tempat entri pertama akan dipilih.

Contoh

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

Penyiapan Python

Lihat halaman Lingkungan Python untuk mengetahui informasi tentang Python API dan penggunaan geemap untuk pengembangan interaktif.

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