با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ورودی بافر شده با فاصله معین را برمی گرداند. اگر فاصله مثبت باشد، هندسه منبسط می شود و اگر فاصله منفی باشد، هندسه منقبض می شود.
استفاده
برمی گرداند
Feature.buffer (distance, maxError , proj )
ویژگی
استدلال
تایپ کنید
جزئیات
این: feature
عنصر
ویژگی که هندسه آن بافر می شود.
distance
شناور
فاصله بافر که ممکن است منفی باشد. اگر هیچ طرح ریزی مشخص نشده باشد، واحد متر است. در غیر این صورت واحد در سیستم مختصات پروجکشن قرار دارد.
maxError
ErrorMargin، پیش فرض: null
حداکثر مقدار خطای قابل تحمل هنگام تقریب دایره بافر و انجام هرگونه بازپخش ضروری. اگر مشخص نشده باشد، به طور پیش فرض 1٪ از فاصله را تعیین می کند.
proj
Projection، پیش فرض: null
در صورت مشخص شدن، بافر در این طرح انجام می شود و فاصله به عنوان واحدهای سیستم مختصات این طرح تفسیر می شود. در غیر این صورت فاصله به صورت متر تعبیه می شود و بافر در یک سیستم مختصات کروی انجام می شود.
تاریخ آخرین بهروزرسانی 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 بهوقت ساعت هماهنگ جهانی."],[[["Returns a Feature with geometry buffered by a specified distance."],["Positive distance expands the geometry; negative distance contracts it."],["Buffering can be performed using meters or a projected coordinate system."],["An optional error margin controls the approximation accuracy."]]],["The `buffer()` method expands or contracts a feature's geometry by a specified distance. A positive distance expands the geometry, while a negative distance contracts it. The `distance` is in meters unless a `proj` projection is given, in which case the units are in the projection's coordinate system. An optional `maxError` sets tolerance. The method returns a new `Feature` that represents the geometry buffered with the parameters used.\n"]]