ee.FeatureCollection.propertyNames

  • The propertyNames() method returns the names of properties on an element.

  • This method is used with FeatureCollection and returns a List.

  • Examples demonstrate using propertyNames() in JavaScript and Python code editors.

Returns the names of properties on this element.

UsageReturns
FeatureCollection.propertyNames()List
ArgumentTypeDetails
this: elementElement

Examples

Code Editor (JavaScript)

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

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

Python setup

See the Python Environment page for information on the Python API and using geemap for interactive development.

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.
print(fc.propertyNames().getInfo())