Estoy usando ‘featureCollection.features.forEach()’ para recorrer una colección de funciones y hacer algunos cambios en cada función. después de cada iteración quiero exportar un archivo CSV. Quiero nombrar cada archivo con una propiedad específica de la característica (‘mi_índice’) pero recibo este error: feature.get no es una función.
sheds.select(['my_index']).evaluate(function (featureCollection) {
featureCollection.features.forEach(function (feature) {
var file_name = feature.get('grdc_no');
Export.table.toDrive({
collection: table_precip,
description: file_name, //get name of the file from the property 'my_index'
folder: 'rain test',
fileFormat: 'CSV',
});
});
});