ee.Geometry.MultiPoint.coveringGrid
Returns a collection of features that cover this geometry, where each feature is a rectangle in the grid defined by the given projection.
Usage | Returns |
---|
MultiPoint.coveringGrid(proj, scale) | FeatureCollection |
Argument | Type | Details |
---|
this: geometry | Geometry | The result is the grid cells that intersect with this region. |
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. |
scale | Float, default: null | Overrides the scale of the projection, if provided. May be required if the projection isn't already scaled. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Returns a FeatureCollection of rectangular grid cells covering the input geometry."],["The grid is defined by the provided projection and an optional scale parameter."],["Each grid cell in the FeatureCollection intersects with the input geometry."],["Useful for spatial analysis and data aggregation within a gridded system."]]],["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. Each resulting feature represents a grid cell that overlaps with the input geometry. The function is called on the input `Geometry`.\n"]]