ee.FeatureCollection.get

یک ویژگی را از یک ویژگی استخراج کنید.

استفاده برمی گرداند
FeatureCollection. get (property)
استدلال تایپ کنید جزئیات
این: object عنصر ویژگی برای استخراج ملک از.
property رشته دارایی برای استخراج.

نمونه ها

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

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

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

// Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject',
      fc.get('provider'));

// The returned value is an ee.ComputedObject which has no methods available for
// further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String',
      ee.String(fc.get('provider')));

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

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

import ee
import geemap.core as geemap

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

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

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

# Get the value of a listed property.
print('Global power plant data provider as ee.ComputedObject:',
      fc.get('provider').getInfo())

# The returned value is an ee.ComputedObject which has no methods available for
# further processing; cast to the relevant Earth Engine object class for use.
print('Global power plant data provider as ee.String:',
      ee.String(fc.get('provider')).getInfo())