columnNames#
- geetools.ee_feature_collection.FeatureCollectionAccessor.columnNames()#
Get the name of the columns (Feature’s properties).
get a flatten list of all the columns names in the FeatureCollection including the ones that are not in all features.
- Returns:
A list of all the column names in the FeatureCollection.
- Return type:
Example
import ee, geetools from geetools.utils import initialize_documentation initialize_documentation() fc = ee.FeatureCollection([ ee.Feature(ee.Geometry.Point([0, 0]), {"name": "A", "value": 1}), ee.Feature(ee.Geometry.Point([1, 1]), {"name": "B", "value": 2, "extra": "extra_value"}) ]) column_names = fc.geetools.columnNames() column_names.getInfo()
['system:index', 'name', 'value', 'extra']