Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simonaca opened this issue Jul 25, 2024 · 0 comments

Comments

@simonaca
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant