הודעה: כל הפרויקטים הלא מסחריים שנרשמו לשימוש ב-Earth Engine לפני 15 באפריל 2025 חייבים לעבור אימות של הזכאות לשימוש לא מסחרי כדי לשמור על הגישה ל-Earth Engine.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יוצרת ee.Geometry שמתארת פוליגון.
לנוחותכם, אפשר להשתמש ב-varargs כשכל הארגומנטים הם מספרים. הפונקציה הזו מאפשרת ליצור מצולעים גאודזיים מסוג EPSG:4326 עם LinearRing יחיד, אם יש מספר זוגי של ארגומנטים, למשל ee.Geometry.Polygon(aLng, aLat, bLng, bLat, ..., aLng, aLat).
רשימה של טבעות שמגדירות את הגבולות של הפוליגון. יכול להיות רשימה של קואורדינטות בפורמט GeoJSON Polygon, רשימה של אובייקטים מסוג ee.Geometry שמתארים LinearRing, או רשימה של מספרים שמגדירים גבול של פוליגון יחיד.
proj
תחזית, אופציונלי
ההטלה של הגיאומטריה הזו. ברירת המחדל היא ההטלה של נתוני הקלט, כאשר המספרים מניחים שהם EPSG:4326.
geodesic
בוליאני, אופציונלי
אם הערך הוא False, הקצוות ישרים בהטלה. אם הערך הוא True, הקצוות מעוקלים כדי לעקוב אחרי הנתיב הקצר ביותר על פני כדור הארץ. ברירת המחדל היא המצב הגיאודזי של ערכי הקלט, או true אם ערכי הקלט הם מספרים.
maxError
ErrorMargin, אופציונלי
השגיאה המקסימלית כשצריך להקרין מחדש גיאומטריה של קלט להקרנת תוצאה או למצב גיאודזי שנדרשים באופן מפורש.
evenOdd
בוליאני, אופציונלי
אם הערך הוא True, פנים הפוליגון ייקבע לפי כלל הזוגי/האי-זוגי, שבו נקודה נמצאת בפנים אם היא חוצה מספר אי-זוגי של קצוות כדי להגיע לנקודה באינסוף. אחרת, במצולעים נעשה שימוש בכלל 'הצד השמאלי', שבו החלק הפנימי נמצא בצד שמאל של קצוות המעטפת כשמסתכלים על הקודקודים בסדר הנתון. אם לא מציינים ערך, ברירת המחדל היא true.
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-08 (שעון UTC)."],[[["`ee.Geometry.Polygon` constructs a polygon geometry in Earth Engine, accepting coordinates, projection, geodesic, max error, and even/odd parameters for customization."],["Input coordinates can be provided as GeoJSON 'Polygon' format, a list of `ee.Geometry.LinearRing` objects, or a list of coordinate pairs for the boundary."],["By default, the projection is derived from inputs (numbers assumed as EPSG:4326), edges are straight unless `geodesic` is true, and interiors are determined using the even/odd rule."],["Optional parameters allow for specifying projection, geodesic behavior, maximum error for reprojection, and even/odd rule for polygon interiors."],["Conveniently, polygons can be created with a single LinearRing using varargs for providing coordinate pairs in EPSG:4326."]]],["This describes the `ee.Geometry.Polygon` constructor, which creates a polygon geometry. Key actions include defining polygon boundaries using a list of rings (in GeoJSON format, as `ee.Geometry.LinearRing` objects, or coordinate pairs). The constructor accepts optional parameters: `proj` (projection), `geodesic` (edge curvature), `maxError` (reprojection error), and `evenOdd` (interior rule). Default values are provided if the parameters are omitted, and the input arguments dictate them.\n"]]