geetools-code-editor icon indicating copy to clipboard operation
geetools-code-editor copied to clipboard

In users/fitoprincipe/geetools:batch collection.serialize is not a function

Open simonaca opened this issue 7 months ago • 0 comments

var storico = ee.FeatureCollection('users/username'); print(storico) var batch = require('users/fitoprincipe/geetools:batch');

var Polygon = ee.Geometry.Polygon([ [ [14.956, 37.892], [15.151, 37.892], [15.151, 37.755], [14.956, 37.755] ] ]);

var setGeometry = function(feature) { return feature.setGeometry(Polygon); };

var updatedCollection = storico.map(setGeometry); print('FeatureCollection aggiornata:', updatedCollection);

var exportOptions = { description: 'salvataggioCSVup', assetId: 'users/username/table' };

batch.Download.Table.toAsset({ collection: storico, description: exportOptions.description, assetId: exportOptions.assetId });

I’m trying to export the csv, but it gives me an error on a function contained in batch( collection.serialize). What I’m trying to export is obviously a feature collection.

Does anyone know how to fix this error?

this is the error In users/fitoprincipe/geetools:batch collection.serialize is not a function

simonaca avatar Jul 25 '24 10:07 simonaca