geetools.batch.Export.table.toDrive#
- static geetools.batch.Export.table.toDrive(collection, description='myExportTableTask', folder=None, fileNamePrefix=None, fileFormat=None, selectors=None, maxVertices=None, priority=None, **kwargs)#
Creates a task to export a FeatureCollection to Drive.
- Parameters:
collection – The feature collection to be exported.
description – Human-readable name of the task.
folder – The name of a unique folder in your Drive account to export into. Defaults to the root of the drive.
fileNamePrefix – The Google Drive filename for the export. Defaults to the name of the task.
fileFormat – The output format: “CSV” (default), “GeoJSON”, “KML”, “KMZ”, “SHP”, or “TFRecord”.
selectors – The list of properties to include in the output, as a list of strings or a comma-separated string. By default, all properties are included.
maxVertices – Max number of uncut vertices per geometry; geometries with more vertices will be cut into pieces smaller than this size.
priority – The priority of the task within the project. Higher priority tasks are scheduled sooner. Must be an integer between 0 and 9999. Defaults to 100.
**kwargs – Holds other keyword arguments that may have been deprecated such as ‘driveFolder’ and ‘driveFileNamePrefix’.
- Returns:
An unstarted Task that exports the table.