ee.Geometry.Rectangle.closestPoint
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחזירה את הנקודה בקלט הימני שהכי קרובה לקלט השמאלי. אם אחד מערכי הקלט ריק, מוחזר ערך null. אם שני ערכי הקלט לא מוגבלים, מוחזרת נקודה שרירותית. אם אחד מהקלט לא חסום, הפונקציה מחזירה נקודה שרירותית בקלט החסום.
שימוש | החזרות |
---|
Rectangle.closestPoint(right, maxError, proj) | אובייקט |
ארגומנט | סוג | פרטים |
---|
זה: left | גיאומטריה | הגיאומטריה שמשמשת כאופרנד השמאלי של הפעולה. |
right | גיאומטריה | הגיאומטריה שמשמשת כאופרנד הימני של הפעולה. |
maxError | ErrorMargin, ברירת מחדל: null | הכמות המקסימלית של שגיאות שמותרות כשמבצעים הקרנה מחדש. |
proj | תחזית, ברירת מחדל: null | ההטלה שבה רוצים לבצע את הפעולה. אם לא מציינים מערכת קואורדינטות, הפעולה תתבצע במערכת קואורדינטות כדורית, והמרחקים הליניאריים יהיו במטרים על פני הכדור. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-29 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-29 (שעון UTC)."],[[["\u003cp\u003eReturns the nearest point on the \u003ccode\u003eright\u003c/code\u003e geometry to the \u003ccode\u003eleft\u003c/code\u003e geometry.\u003c/p\u003e\n"],["\u003cp\u003eReturns \u003ccode\u003enull\u003c/code\u003e if either input geometry is empty.\u003c/p\u003e\n"],["\u003cp\u003eHandles unbounded geometries by returning an arbitrary point within the bounded or unbounded input as appropriate.\u003c/p\u003e\n"],["\u003cp\u003eAllows specifying an error margin (\u003ccode\u003emaxError\u003c/code\u003e) for reprojection and a projection (\u003ccode\u003eproj\u003c/code\u003e) for the operation.\u003c/p\u003e\n"]]],["The function finds the nearest point on the `right` geometry to the `left` geometry. It returns an `Object` representing this point. If either geometry is empty, it returns `null`. Unbounded geometries result in arbitrary point returns. The `maxError` argument controls reprojection tolerance, and `proj` specifies the coordinate system. If no projection is given, calculations are done on a spherical model, and distances are in meters.\n"],null,["# ee.Geometry.Rectangle.closestPoint\n\nReturns the point on the right input that is nearest to the left input. If either input is empty, null is returned. If both inputs are unbounded, an arbitrary point is returned. If one input is unbounded, an arbitrary point in the bounded input is returned.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------|---------|\n| Rectangle.closestPoint`(right, `*maxError* `, `*proj*`)` | Object |\n\n| Argument | Type | Details |\n|--------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `left` | Geometry | The geometry used as the left operand of the operation. |\n| `right` | Geometry | The geometry used as the right operand of the operation. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | The projection in which to perform the operation. If not specified, the operation will be performed in a spherical coordinate system, and linear distances will be in meters on the sphere. |"]]