ee.FeatureCollection.first

指定されたコレクションの最初のエントリを返します。

用途戻り値
FeatureCollection.first()要素
引数タイプ詳細
これ: collectionFeatureCollection最初のエントリを選択するコレクション。

コードエディタ(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 の設定

Python API とインタラクティブな開発での geemap の使用については、 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())