ee.FeatureCollection.toDictionary

استخراج خواص از یک ویژگی به عنوان فرهنگ لغت.

استفاده برمی گرداند
FeatureCollection. toDictionary ( properties ) فرهنگ لغت
استدلال تایپ کنید جزئیات
این: element عنصر ویژگی برای استخراج ملک از.
properties لیست، پیش فرض: null لیست خواص برای استخراج پیش‌فرض تمام خصوصیات غیر سیستمی.

نمونه ها

ویرایشگر کد (جاوا اسکریپت)

// FeatureCollection of power plants.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

print('All non-system FeatureCollection properties as an ee.Dictionary',
      fc.toDictionary());
print('Selected properties as an ee.Dictionary',
      fc.toDictionary(['description', 'provider']));

راه اندازی پایتون

برای اطلاعات در مورد API پایتون و استفاده از geemap برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.

import ee
import geemap.core as geemap

کولب (پایتون)

# FeatureCollection of power plants.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

print('All non-system FeatureCollection properties as an ee.Dictionary:',
      fc.toDictionary().getInfo())
print('Selected properties as an ee.Dictionary:',
      fc.toDictionary(['description', 'provider']).getInfo())