ee.Geometry.s2Cell
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy wielokąt odpowiadający identyfikatorowi komórki S2.
Wykorzystanie | Zwroty |
---|
ee.Geometry.s2Cell(cellId) | Geometria |
Argument | Typ | Szczegóły |
---|
cellId | Długie | Identyfikator komórki S2 jako 64-bitowa liczba całkowita. W przypadku JavaScriptu, który nie obsługuje liczb całkowitych większych niż 53 bity, użyj funkcji fromS2CellToken. |
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\u003eConstructs an Earth Engine Geometry representing the Polygon of a given S2 cell ID.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eee.Geometry.s2Cell()\u003c/code\u003e takes an S2 cell ID as input and returns the corresponding Geometry object.\u003c/p\u003e\n"],["\u003cp\u003eS2 cell IDs should be provided as 64-bit integers, but for JavaScript users, the \u003ccode\u003efromS2CellToken\u003c/code\u003e method is recommended due to limitations with large integers.\u003c/p\u003e\n"]]],["The function `ee.Geometry.s2Cell(cellId)` creates a Polygon Geometry from an S2 cell ID. It accepts a 64-bit integer (`cellId`) representing the S2 cell. Due to JavaScript's limitations with integers larger than 53 bits, the method `fromS2CellToken` is suggested as an alternative. The function returns a Geometry object.\n"],null,["# ee.Geometry.s2Cell\n\nConstructs the Polygon corresponding to an S2 cell id.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|----------|\n| `ee.Geometry.s2Cell(cellId)` | Geometry |\n\n| Argument | Type | Details |\n|----------|------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `cellId` | Long | The S2 cell id as 64 bit integer. From Javascript, which does not support integers larger than 53 bits, use fromS2CellToken instead. |"]]