Anúncio: todos os projetos não comerciais registrados para usar o Earth Engine antes de
15 de abril de 2025 precisam
verificar a qualificação não comercial para manter o acesso. Se você não fizer a verificação até 26 de setembro de 2025, seu acesso poderá ser suspenso.
ee.FeatureCollection.get
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Extrair uma propriedade de um recurso.
| Uso | Retorna |
|---|
FeatureCollection.get(property) | |
| Argumento | Tipo | Detalhes |
|---|
isso: object | Elemento | O recurso de onde a propriedade será extraída. |
property | String | A propriedade a ser extraída. |
Exemplos
Editor de código (JavaScript)
// 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')));
Configuração do Python
Consulte a página
Ambiente Python para informações sobre a API Python e como usar
geemap para desenvolvimento interativo.
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.
display(fc.propertyNames())
# Get the value of a listed property.
display('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.
display('Global power plant data provider as ee.String:',
ee.String(fc.get('provider')))
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-10-30 UTC.
[null,null,["Última atualização 2025-10-30 UTC."],[],["The core functionality involves extracting a specific property from a FeatureCollection using the `get(property)` method. This method requires the feature itself and the property name as input. The returned value is initially an `ee.ComputedObject`, which must be cast to the appropriate Earth Engine object type (e.g., `ee.String`) for further use. Examples demonstrate accessing property names via `propertyNames()` and extracting the 'provider' property from a power plant FeatureCollection in both JavaScript and Python.\n"]]