تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تعرض هذه الدالة نقطة في وسط مكوّنات الشكل الهندسي ذات الأبعاد الأعلى. يتم تجاهل المكوّنات ذات الأبعاد الأقل، لذا فإنّ مركز الثقل لشكل هندسي يحتوي على مضلّعين وثلاثة خطوط ونقطة يساوي مركز الثقل لشكل هندسي يحتوي على المضلّعين فقط.
الاستخدام
المرتجعات
LineString.centroid(maxError, proj)
هندسة
الوسيطة
النوع
التفاصيل
هذا: geometry
هندسة
تحسب هذه الدالة مركز الشكل الهندسي.
maxError
ErrorMargin، القيمة التلقائية: null
الحدّ الأقصى لمقدار الخطأ المسموح به عند إجراء أي عملية إعادة إسقاط ضرورية.
proj
التوقّع، القيمة التلقائية: null
إذا تم تحديدها، ستكون النتيجة في هذا العرض. وإلا سيكون بتنسيق EPSG:4326.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Returns a point representing the center of the highest-dimension components of a geometry, ignoring lower-dimensional ones."],["The `centroid()` method can be applied to geometries and takes optional `maxError` and `proj` arguments for customization."],["`maxError` controls the tolerance for reprojection errors, while `proj` specifies the output projection (defaults to EPSG:4326)."],["It is demonstrated with examples using both JavaScript and Python within the Google Earth Engine environment."]]],["The `centroid` method calculates the center point of a geometry's highest-dimensional components, disregarding lower-dimensional ones. It accepts optional `maxError` and `proj` arguments to control error tolerance and output projection. For a `LineString` object, the method returns a `Geometry` object representing the centroid. Example code shows defining a `LineString`, applying `centroid`, and visualizing both on a map. The function is shown in Javascript and Python.\n"]]