Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ee.FeatureCollection.select Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Use the
selectfunction to choose specific properties from a FeatureCollection.You can select multiple properties and optionally rename them.
The function allows you to remove the geometry from the resulting FeatureCollection if needed.
Returns the feature collection with selected properties.
| Usage | Returns |
|---|---|
FeatureCollection.select(propertySelectors,newProperties,retainGeometry) | FeatureCollection |
| Argument | Type | Details |
|---|---|---|
this:featurecollection | FeatureCollection | The FeatureCollection instance. |
propertySelectors | List<String> | A list of names or regexes specifying the attributes to select. |
newProperties | List<String>, optional | A list of new names for the output properties. Must match the number of properties selected. |
retainGeometry | Boolean, optional | When false, the result will have a NULL geometry. Defaults to true. |
Examples
Code Editor (JavaScript)
// FeatureCollection of power plants in Belgium.varfc=ee.FeatureCollection('WRI/GPPD/power_plants').filter('country_lg == "Belgium"');// Select a single property.varsingleProp=fc.select('fuel1');print('Single property selected',singleProp.first());// Select multiple properties.varmultiProp=fc.select(['fuel1','capacitymw']);print('Multiple properties selected',multiProp.first());// Select multiple properties and rename them.varmultiPropRename=fc.select({propertySelectors:['fuel1','capacitymw'],newProperties:['Fuel_1','Capacity_MW']});print('Multiple properties selected, renamed',multiPropRename.first());// Select multiple properties, remove geometry.varmultiPropNoGeom=fc.select({propertySelectors:['fuel1','capacitymw'],retainGeometry:false});print('Multiple properties selected, geometry removed',multiPropNoGeom.first());
Python setup
See the Python Environment page for information on the Python API and usinggeemap for interactive development.
importeeimportgeemap.coreasgeemap
Colab (Python)
# FeatureCollection of power plants in Belgium.fc=ee.FeatureCollection('WRI/GPPD/power_plants').filter('country_lg == "Belgium"')# Select a single property.single_prop=fc.select('fuel1')display('Single property selected:',single_prop.first())# Select multiple properties.multi_prop=fc.select(['fuel1','capacitymw'])display('Multiple properties selected:',multi_prop.first())# Select multiple properties and rename them.multi_prop_rename=fc.select(**{'propertySelectors':['fuel1','capacitymw'],'newProperties':['Fuel_1','Capacity_MW']})display('Multiple properties selected, renamed:',multi_prop_rename.first())# Select multiple properties, remove geometry.multi_prop_no_geom=fc.select(**{'propertySelectors':['fuel1','capacitymw'],'retainGeometry':False})display('Multiple properties selected, geometry removed:',multi_prop_no_geom.first())
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-08 UTC.