公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Blob.url
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回 Blob 的 Google Cloud Storage 網址。您必須能存取 bucket 中繼資料 (需要
storage.buckets.get
權限,這項權限由「Storage 舊版 bucket 讀取者」等角色提供,詳情請參閱 https://cloud.google.com/storage/docs/access-control/iam-roles),且 bucket 必須位於美國多地區、包含 US-CENTRAL1 的雙重地區,或 US-CENTRAL1 地區。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis function returns the Google Cloud Storage URL of a Blob object as a string.\u003c/p\u003e\n"],["\u003cp\u003eIt is accessed via the \u003ccode\u003eurl()\u003c/code\u003e method directly on a Blob instance, taking no additional arguments.\u003c/p\u003e\n"]]],["The core function retrieves a Blob's Google Cloud Storage URL, returning it as a String. It requires `storage.buckets.get` permission (e.g., via \"Storage Legacy Bucket Reader\" role). The associated bucket must reside in the US multi-region, a dual-region encompassing US-CENTRAL1, or solely in the US-CENTRAL1 region. The function takes the `blob` as an argument.\n"],null,["# ee.Blob.url\n\nReturns the Blob's Google Cloud Storage URL. The bucket metadata must be accessible (requires the `storage.buckets.get` permission which is provided by the role \"Storage Legacy Bucket Reader\" among others, see https://cloud.google.com/storage/docs/access-control/iam-roles) and the bucket must be located in the US multi-region, a dual-region including US-CENTRAL1, or theUS-CENTRAL1 region.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------|---------|\n| Blob.url`()` | String |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `blob` | Blob | |"]]