ee.FeatureCollection.propertyNames

Trả về tên của các thuộc tính trên phần tử này.

Cách sử dụngGiá trị trả về
FeatureCollection.propertyNames()Danh sách
Đối sốLoạiThông tin chi tiết
this: elementPhần tử

Ví dụ

Trình soạn thảo mã (JavaScript)

// A global power plant FeatureCollection.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

// View a list of FeatureCollection property names.
print(fc.propertyNames());

Thiết lập Python

Hãy xem trang Môi trường Python để biết thông tin về API Python và cách sử dụng geemap cho quá trình phát triển tương tác.

import ee
import geemap.core as geemap

Colab (Python)

# A global power plant FeatureCollection.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

# View a list of FeatureCollection property names.
print(fc.propertyNames().getInfo())