Export.table.toCloudStorage
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy zadanie wsadowe, które eksportuje obiekt FeatureCollection jako tabelę do Google Cloud Storage. Zadania można rozpocząć na karcie Zadania.
Wykorzystanie | Zwroty |
---|
Export.table.toCloudStorage(collection, description, bucket, fileNamePrefix, fileFormat, selectors, maxVertices, priority) | |
Argument | Typ | Szczegóły |
---|
collection | FeatureCollection | Kolekcja obiektów do wyeksportowania. |
description | Ciąg znaków, opcjonalnie | Zrozumiała dla człowieka nazwa zadania. Domyślna wartość to „myExportTableTask”. |
bucket | Ciąg znaków, opcjonalnie | Zasobnik docelowy Cloud Storage. |
fileNamePrefix | Ciąg znaków, opcjonalnie | Ciąg znaków używany jako prefiks danych wyjściowych. Końcowy znak „/” oznacza ścieżkę. Domyślnie jest to opis. |
fileFormat | Ciąg znaków, opcjonalnie | Format wyjściowy: „CSV” (domyślny), „GeoJSON”, „KML”, „KMZ”, „SHP” lub „TFRecord”. |
selectors | List<String>|String, opcjonalnie | Lista właściwości do uwzględnienia w eksporcie: pojedynczy ciąg znaków z nazwami rozdzielonymi przecinkami lub lista ciągów znaków. |
maxVertices | Numer, opcjonalny | Maksymalna liczba nieprzyciętych wierzchołków w geometrii. Geometrie z większą liczbą wierzchołków zostaną podzielone na mniejsze części. |
priority | Numer, opcjonalny | Priorytet zadania w projekcie. Zadania o wyższym priorytecie są planowane wcześniej. Musi być liczbą całkowitą z zakresu od 0 do 9999. Domyślna wartość to 100. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eExports a FeatureCollection to Google Cloud Storage in various formats like CSV, GeoJSON, KML, KMZ, SHP, or TFRecord.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of export with options for file name, description, property selection, and geometry simplification.\u003c/p\u003e\n"],["\u003cp\u003eTasks can be prioritized for scheduling and monitored through the Tasks tab within the platform.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a Cloud Storage bucket and file name prefix to organize exported data.\u003c/p\u003e\n"]]],["This document outlines how to export a FeatureCollection as a table to Google Cloud Storage using a batch task. The `Export.table.toCloudStorage` function requires a `collection` and allows for optional parameters: `description` (task name), `bucket` (destination), `fileNamePrefix`, `fileFormat` (CSV, GeoJSON, etc.), `selectors` (properties to include), `maxVertices` (geometry limit), and `priority` (task scheduling). The function creates a task accessible from the Tasks tab.\n"],null,["# Export.table.toCloudStorage\n\n\u003cbr /\u003e\n\nCreates a batch task to export a FeatureCollection as a table to Google Cloud Storage. Tasks can be started from the Tasks tab.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `Export.table.toCloudStorage(collection, `*description* `, `*bucket* `, `*fileNamePrefix* `, `*fileFormat* `, `*selectors* `, `*maxVertices* `, `*priority*`)` | |\n\n| Argument | Type | Details |\n|------------------|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `collection` | FeatureCollection | The feature collection to export. |\n| `description` | String, optional | A human-readable name of the task. Defaults to \"myExportTableTask\". |\n| `bucket` | String, optional | The Cloud Storage destination bucket. |\n| `fileNamePrefix` | String, optional | The string used as the output's prefix. A trailing \"/\" indicates a path. Defaults to the description. |\n| `fileFormat` | String, optional | The output format: \"CSV\" (default), \"GeoJSON\", \"KML\", \"KMZ\", \"SHP\", or \"TFRecord\". |\n| `selectors` | List\\\u003cString\\\u003e\\|String, optional | A list of properties to include in the export; either a single string with comma-separated names or a list of strings. |\n| `maxVertices` | Number, optional | Max number of uncut vertices per geometry; geometries with more vertices will be cut into pieces smaller than this size. |\n| `priority` | Number, optional | 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. |"]]