You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: