geetools.FeatureCollection.FeatureCollectionAccessor.addId#
- geetools.FeatureCollection.FeatureCollectionAccessor.addId(name='id', start=1)#
Add a unique numeric identifier, starting from parameter
start
.- Returns:
The parsed collection with a new id property
- Parameters:
name (geetools.types.ee_str)
start (geetools.types.ee_int)
- Return type:
ee.FeatureCollection
Example
import ee import geetools ee.Initialize() fc = ee.FeatureCollection('FAO/GAUL/2015/level0') fc = fc.geetools.addId() print(fc.first().get('id').getInfo())