ee.Algorithms.GeometryConstructors.Rectangle
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
יוצרת פוליגון מלבני מנקודות הפינה הנתונות.
שימוש | החזרות |
---|
ee.Algorithms.GeometryConstructors.Rectangle(coordinates, crs, geodesic, evenOdd) | גיאומטריה |
ארגומנט | סוג | פרטים |
---|
coordinates | רשימה | הפינות הנמוכות ואז הגבוהות של המלבן, כרשימה של נקודות או כזוגות של מספרים בסדר x,y. |
crs | תחזית, ברירת מחדל: null | מערכת ייחוס הקואורדינטות של הקואורדינטות. ברירת המחדל היא ההטלה של נתוני הקלט, כאשר המספרים מניחים שהם EPSG:4326. |
geodesic | בוליאני, ברירת מחדל: null | אם הערך הוא False, הקצוות ישרים בהטלה. אם הערך הוא True, הקצוות מעוקלים כדי לעקוב אחרי הנתיב הקצר ביותר על פני כדור הארץ. ברירת המחדל היא המצב הגיאודזי של ערכי הקלט, או true אם ערכי הקלט הם מספרים. |
evenOdd | בוליאני, ברירת מחדל: true | אם הערך הוא True, פנים הפוליגון ייקבע לפי כלל הזוגי/האי-זוגי, שבו נקודה נמצאת בפנים אם היא חוצה מספר אי-זוגי של קצוות כדי להגיע לנקודה באינסוף. אחרת, במצולעים נעשה שימוש בכלל 'הצד השמאלי הפנימי', שבו החלק הפנימי נמצא בצד שמאל של קצוות המעטפת כשמסתכלים על הקודקודים בסדר הנתון. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCreates a rectangular polygon using specified corner points.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of coordinate system, edge curvature (straight or geodesic), and polygon interior calculation (even/odd or left-inside rule).\u003c/p\u003e\n"],["\u003cp\u003eAccepts corner points as a list of Points or coordinate pairs (x,y).\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 coordinate system if not specified and geodesic edges if input is numerical.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Rectangle\n\nConstructs a rectangular polygon from the given corner points.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Rectangle(coordinates, `*crs* `, `*geodesic* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|---------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | The low and then high corners of the Rectangle, as a list of Points or pairs of Numbers in x,y order. |\n| `crs` | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, default: null | If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers. |\n| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]