ee.FeatureCollection.first

Возвращает первую запись из заданной коллекции.

Использование Возврат
FeatureCollection. first () Элемент
Аргумент Тип Подробности
это: collection FeatureCollection Коллекция, из которой следует выбрать первую запись.

Примеры

Редактор кода (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

Информацию об API Python и использовании 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())