هندسه به عنوان عملوند سمت چپ عملیات استفاده می شود.
right
هندسه
هندسه ای که به عنوان عملوند مناسب عملیات استفاده می شود.
maxError
ErrorMargin، پیش فرض: null
حداکثر مقدار خطای قابل تحمل هنگام انجام هر گونه بازطراحی ضروری.
proj
Projection، پیش فرض: null
طرح ریزی که در آن عملیات انجام می شود. اگر مشخص نشده باشد، عملیات در سیستم مختصات کروی انجام می شود و فواصل خطی بر حسب متر روی کره خواهد بود.
spherical
بولی، پیش فرض: نادرست
اگر درست باشد، محاسبه روی واحد کره انجام می شود. اگر نادرست باشد، با در نظر گرفتن مسطح شدن زمین، محاسبه بیضوی خواهد بود. اگر proj مشخص شده باشد نادیده گرفته می شود. پیش فرض نادرست است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-24 بهوقت ساعت هماهنگ جهانی."],[[["`distance()` calculates the minimum distance between two geometries, with one being a LinearRing."],["The distance is returned as a float and can be calculated using a specified projection or spherically in meters."],["Optional parameters allow for controlling the error margin (`maxError`) and the projection (`proj`) used in the calculation."],["This function is accessible within both the JavaScript and Python Earth Engine APIs."]]],["The `distance` method calculates the minimum distance between two geometries (`left` and `right`). It accepts optional parameters: `maxError` (tolerated error), `proj` (projection for calculation), and `spherical` (true for unit sphere calculation, false for elliptical). The function outputs a float representing the distance. The examples show how to use the function in JavaScript and Python to compute and visualize the distance between a `LinearRing` and a `Point` geometry.\n"]]