ee.FeatureCollection.toDictionary

استخراج السمات من عنصر كقاموس

الاستخدامالمرتجعات
FeatureCollection.toDictionary(properties)القاموس
الوسيطةالنوعالتفاصيل
هذا: elementالعنصرالميزة التي سيتم استخراج السمة منها.
propertiesقائمة، القيمة التلقائية: فارغةقائمة المواقع المطلوب استخراجها يتم ضبطها تلقائيًا على جميع الخصائص غير التابعة للنظام.

أمثلة

محرّر الرموز البرمجية (JavaScript)

// 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']));

إعداد Python

راجِع صفحة بيئة Python للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام geemap للتطوير التفاعلي.

import ee
import geemap.core as geemap

Colab (Python)

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