def _extract_feature_indexes(_feature_collection): def action(): return _feature_collection.aggregate_array( 'system:index').getInfo() return execute(credentials, action, description='Feature indexes from FeatureCollection')
def _to_geometries(_feature_collection, feature_indexes) -> Observable: def action(): return [ ee.Feature( _feature_collection .filterMetadata('system:index', 'equals', feature_index) .first() ).geometry() for feature_index in feature_indexes ] return execute(credentials, action, description='FeatureCollection to geometries')