با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک ویژگی حاوی نقطه در مرکز اجزای با بالاترین بعد هندسه یک ویژگی را برمیگرداند. مولفههای ابعاد پایینتر نادیده گرفته میشوند، بنابراین مرکز یک هندسه شامل دو چند ضلعی، سه خط و یک نقطه معادل مرکز هندسهای است که فقط شامل دو چندضلعی است.
استفاده
برمی گرداند
Feature.centroid ( maxError , proj )
ویژگی
استدلال
تایپ کنید
جزئیات
این: feature
عنصر
مرکز هندسه پیش فرض این ویژگی را محاسبه می کند.
maxError
ErrorMargin، پیش فرض: null
حداکثر مقدار خطای قابل تحمل هنگام انجام هر گونه بازطراحی ضروری.
proj
Projection، پیش فرض: null
اگر مشخص شود، نتیجه در این طرح خواهد بود. در غیر این صورت در EPSG:4326 خواهد بود.
تاریخ آخرین بهروزرسانی 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 a point geometry representing the center of the highest-dimension component(s) of the input feature's geometry."],["Lower-dimensional components like lines and points within the input geometry are disregarded when calculating the centroid."],["The function can accept an optional `maxError` for reprojection tolerance and an optional `proj` to specify the output projection, defaulting to EPSG:4326."],["It is accessible through the `Feature.centroid()` method, taking the input feature, optional error margin, and optional projection as arguments."]]],["The `centroid` method calculates the center point of a feature's highest-dimension geometry, disregarding lower-dimensional parts. It returns a new feature representing this centroid. The method accepts optional arguments: `maxError` defines the tolerated reprojection error, and `proj` specifies the output projection (defaulting to EPSG:4326). The method operates on the default geometry of a specified `feature`.\n"]]