ee.Geometry.coveringGrid
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca zbiór obiektów obejmujących tę geometrię, przy czym każdy obiekt jest prostokątem w siatce zdefiniowanej przez podaną projekcję.
Wykorzystanie | Zwroty |
---|
Geometry.coveringGrid(proj, scale) | FeatureCollection |
Argument | Typ | Szczegóły |
---|
to: geometry | Geometria | Wynikiem są komórki siatki, które przecinają ten region. |
proj | Odwzorowanie | Projekcja, w której ma zostać utworzona siatka. Dla każdej komórki siatki, która przecina „geometrię”, generowana jest funkcja, w której rogi komórki znajdują się w pozycjach o wartościach całkowitych w projekcji. Jeśli projekcja jest skalowana w metrach, punkty będą znajdować się na siatce o takim rozmiarze w miejscu rzeczywistej skali. |
scale | Liczba zmiennoprzecinkowa, domyślnie: null | Zastępuje skalę projekcji, jeśli została podana. Może być wymagane, jeśli projekcja nie jest jeszcze przeskalowana. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\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 within the grid that intersects with the input Geometry.\u003c/p\u003e\n"],["\u003cp\u003eIf the Projection is scaled in meters, grid cells are aligned to integer positions at the true scale point.\u003c/p\u003e\n"],["\u003cp\u003eA scale parameter can override the Projection's inherent scale if necessary.\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 each cell represented as a feature. The grid's scale is determined by the projection, or overridden by an optional `scale` argument. The function returns cells where their corners are located at integer-valued positions within the specified `Projection`.\n"],null,["# ee.Geometry.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| Geometry.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. |"]]