公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Geometry.coveringGrid
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
傳回涵蓋這個幾何圖形的特徵集合,其中每個特徵都是指定投影所定義格線中的矩形。
用量 | 傳回 |
---|
Geometry.coveringGrid(proj, scale) | FeatureCollection |
引數 | 類型 | 詳細資料 |
---|
這個:geometry | 幾何圖形 | 結果是與這個區域相交的格線儲存格。 |
proj | 預測值 | 要建構格線的投影。系統會為每個與「geometry」相交的格線儲存格產生特徵,其中儲存格的角落位於投影中的整數值位置。如果投影是以公尺為單位縮放,點會位於真實比例的該大小格線。 |
scale | 浮點值,預設值為空值 | 覆寫投影的比例 (如有)。如果投影尚未縮放,可能需要此屬性。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eReturns a FeatureCollection representing a grid that covers the input Geometry.\u003c/p\u003e\n"],["\u003cp\u003eThe grid is defined by the provided Projection and an optional scale parameter.\u003c/p\u003e\n"],["\u003cp\u003eEach feature in the collection is a rectangle within the grid that intersects with the input Geometry.\u003c/p\u003e\n"],["\u003cp\u003eIf the Projection is scaled in meters, grid cells are aligned to integer positions at the true scale point.\u003c/p\u003e\n"],["\u003cp\u003eA scale parameter can override the Projection's inherent scale if necessary.\u003c/p\u003e\n"]]],["The `coveringGrid` function generates a `FeatureCollection` of rectangular grid cells that intersect a given `Geometry`. It uses a specified `Projection` to define the grid, with each cell represented as a feature. The grid's scale is determined by the projection, or overridden by an optional `scale` argument. The function returns cells where their corners are located at integer-valued positions within the specified `Projection`.\n"],null,["# ee.Geometry.coveringGrid\n\nReturns a collection of features that cover this geometry, where each feature is a rectangle in the grid defined by the given projection.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------|-------------------|\n| Geometry.coveringGrid`(proj, `*scale*`)` | FeatureCollection |\n\n| Argument | Type | Details |\n|------------------|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `geometry` | Geometry | The result is the grid cells that intersect with this region. |\n| `proj` | Projection | The projection in which to construct the grid. A feature is generated for each grid cell that intersects 'geometry', where cell corners are at integer-valued positions in the projection. If the projection is scaled in meters, the points will be on a grid of that size at the point of true scale. |\n| `scale` | Float, default: null | Overrides the scale of the projection, if provided. May be required if the projection isn't already scaled. |"]]