公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
CloudStorageDestination
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Cloud Storage 中的目的地設定。
JSON 表示法 |
{
"bucket": string,
"filenamePrefix": string,
"permissions": enum (TilePermissions ),
"bucketCorsUris": [
string
]
} |
欄位 |
bucket |
string
Google Cloud Storage 目的地值區。
|
filenamePrefix |
string
用於做為每個輸出檔案前置字串的字串。結尾的「/」表示路徑。匯出檔案的檔案名稱會根據這個前置字串、馬賽克中每個檔案的座標 (如有),以及相應檔案格式的副檔名建構。
|
permissions |
enum (TilePermissions )
指定要為匯出的圖塊設定的權限。如未指定,則預設為 DEFAULT_OBJECT_ACL。
|
bucketCorsUris[] |
string
選用 URI 清單,用於將值區的 CORS 設定列入許可清單。可讓網站透過 JavaScript 存取匯出的檔案。
|
TilePermissions
列舉 |
TILE_PERMISSIONS_UNSPECIFIED |
未指明 |
PUBLIC |
撰寫公開資訊方塊。呼叫端必須是值區的擁有者。 |
DEFAULT_OBJECT_ACL |
使用值區的預設物件 ACL 寫入圖塊。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eExports data to Google Cloud Storage, utilizing a specified bucket and filename prefix for organization.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of file permissions, including public access or adherence to bucket defaults.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, enables cross-origin resource sharing (CORS) by whitelisting specific URIs for web-based access to exported files.\u003c/p\u003e\n"]]],["This describes configuration settings for a Google Cloud Storage destination. Key elements include the `bucket` (destination), `filenamePrefix` (output file prefix, supporting paths), and `permissions` (access control for exported tiles, defaulting to `DEFAULT_OBJECT_ACL`). `permissions` can be `PUBLIC` or `DEFAULT_OBJECT_ACL`, and `bucketCorsUris` allows for enabling cross-origin access through JavaScript. `TilePermissions` is a list of permission settings that are available.\n"],null,["# CloudStorageDestination\n\nConfiguration for a destination in Google Cloud Storage.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"bucket\": string, \"filenamePrefix\": string, \"permissions\": enum (/earth-engine/reference/rest/v1beta/CloudStorageDestination#TilePermissions), \"bucketCorsUris\": [ string ] } ``` |\n\n| Fields ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bucket` | `string` The Google Cloud Storage destination bucket. |\n| `filenamePrefix` | `string` The string used as the prefix for each output file. A trailing \"/\" indicates a path. The filenames of the exported files will be constructed from this prefix, the coordinates of each file in a mosaic (if any), and a file extension corresponding to the file format. |\n| `permissions` | `enum (`[TilePermissions](/earth-engine/reference/rest/v1beta/CloudStorageDestination#TilePermissions)`)` Specifies the permissions to set on the exported tiles. If unspecified, defaults to DEFAULT_OBJECT_ACL. |\n| `bucketCorsUris[]` | `string` Optional list of URIs to whitelist for the CORS settings on the bucket. Used to enable websites to access exported files via JavaScript. |\n\nTilePermissions\n---------------\n\nPermissions to set on exported map tiles.\n\n| Enums ||\n|--------------------------------|-----------------------------------------------------------------------|\n| `TILE_PERMISSIONS_UNSPECIFIED` | Unspecified. |\n| `PUBLIC` | Write public tiles. Requires the caller to be an OWNER of the bucket. |\n| `DEFAULT_OBJECT_ACL` | Write tiles using the bucket's default object ACL. |"]]