公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.Geometry.LineString.coveringGrid
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回覆盖相应几何图形的一系列要素,其中每个要素都是由指定投影定义的网格中的一个矩形。
用法 | 返回 |
---|
LineString.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\u003eEach feature in the collection is a rectangle within the grid defined by the specified projection.\u003c/p\u003e\n"],["\u003cp\u003eThe grid cells are generated for areas where the geometry intersects the grid, with cell corners positioned at integer coordinates in the projection.\u003c/p\u003e\n"],["\u003cp\u003eAn optional scale parameter can be used to override the projection's default scale, especially when the projection is not inherently scaled.\u003c/p\u003e\n"]]],["The method `LineString.coveringGrid` generates a `FeatureCollection` of rectangular grid cells that intersect a given geometry. It requires a `projection` to define the grid, creating cells at integer-valued positions. Optionally, a `scale` can be provided to override the projection's scale. Each grid cell intersecting the geometry is included as a feature in the returned collection. The `geometry` argument defines the region of interest.\n"],null,["# ee.Geometry.LineString.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| LineString.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. |"]]