公告:所有在
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
要为存储分区上的 CORS 设置列入白名单的 URI 列表(可选)。用于让网站能够通过 JavaScript 访问导出的文件。
|
TilePermissions
枚举 |
TILE_PERMISSIONS_UNSPECIFIED |
未指定。 |
PUBLIC |
编写公共功能块。要求调用方是存储分区的所有者。 |
DEFAULT_OBJECT_ACL |
使用存储分区的默认对象 ACL 写入功能块。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eExports data to Google Cloud Storage, defining the destination bucket, file prefix, and permissions.\u003c/p\u003e\n"],["\u003cp\u003eAllows customizing file naming with a prefix and automatically incorporates mosaic coordinates and file extensions.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over tile permissions, including public access and using bucket defaults.\u003c/p\u003e\n"],["\u003cp\u003eOptionally enables cross-origin resource sharing (CORS) by whitelisting specific URIs for web access to exported files.\u003c/p\u003e\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/v1/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/v1/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. |"]]