Stay organized with collectionsSave and categorize content based on your preferences.
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
LineString.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["\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. |"]]