ee.Geometry.Polygon.coveringGrid
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Renvoie une collection de caractéristiques qui couvrent cette géométrie, où chaque caractéristique est un rectangle dans la grille définie par la projection donnée.
Utilisation | Renvoie |
---|
Polygon.coveringGrid(proj, scale) | FeatureCollection |
Argument | Type | Détails |
---|
ceci : geometry | Géométrie | Le résultat correspond aux cellules de la grille qui croisent cette région. |
proj | Projection | Projection dans laquelle construire la grille. Une caractéristique est générée pour chaque cellule de grille qui croise "geometry", où les angles des cellules se trouvent à des positions entières dans la projection. Si la projection est mise à l'échelle en mètres, les points se trouveront sur une grille de cette taille au point de mise à l'échelle réelle. |
scale | Float, valeur par défaut : null | Remplace l'échelle de la projection, le cas échéant. Peut être nécessaire si la projection n'est pas déjà mise à l'échelle. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eReturns a FeatureCollection of rectangular grid cells covering 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 grid cell in the FeatureCollection intersects with the input geometry.\u003c/p\u003e\n"],["\u003cp\u003eUseful for spatial analysis and data processing tasks that require a gridded representation of a geometry.\u003c/p\u003e\n"]]],["The `coveringGrid` method generates a `FeatureCollection` of rectangular grid cells that intersect a given `geometry`. It requires a `projection` to define the grid, with optional `scale` to override the projection's scaling. Each feature returned is a rectangle within the grid. The grid's cell corners are at integer-valued positions within the specified projection. If the projection has a scale in meters, the grid points will be positioned accordingly.\n"],null,["# ee.Geometry.Polygon.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| Polygon.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. |"]]