ee.Geometry.s2Cell
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Constructs the Polygon corresponding to an S2 cell id.
שימוש | החזרות |
---|
ee.Geometry.s2Cell(cellId) | גיאומטריה |
ארגומנט | סוג | פרטים |
---|
cellId | ארוך | מזהה תא S2 כמספר שלם ב-64 ביט. מ-JavaScript, שלא תומך במספרים שלמים גדולים מ-53 ביטים, צריך להשתמש בפונקציה fromS2CellToken. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]