公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Geometry.Point.coveringGrid
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回覆盖相应几何图形的一系列要素,其中每个要素都是由指定投影定义的网格中的一个矩形。
用法 | 返回 |
---|
Point.coveringGrid(proj, scale) | FeatureCollection |
参数 | 类型 | 详细信息 |
---|
此:geometry | 几何图形 | 结果是与相应区域相交的网格单元。 |
proj | 投影 | 用于构建网格的投影。为与“geometry”相交的每个网格单元生成一个特征,其中单元格角位于投影中的整数值位置。如果投影按米缩放,则点将位于真实比例点处相应大小的网格上。 |
scale | 浮点数,默认值:null | 如果提供,则替换投影的缩放比例。如果投影尚未缩放,则可能需要此参数。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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 corresponding to a grid cell intersecting the input geometry.\u003c/p\u003e\n"],["\u003cp\u003eThe projection determines the grid's orientation and units, with integer coordinates at cell corners.\u003c/p\u003e\n"],["\u003cp\u003eA scale parameter can override the projection's inherent scale if necessary for specific grid sizing.\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 cell corners at integer-valued positions. An optional `scale` argument can override the projection's scale. The function identifies and returns features for each grid cell intersecting the input geometry within the defined projection. Each generated feature represents one rectangle cell of the grid.\n"],null,["# ee.Geometry.Point.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| Point.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. |"]]