إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Algorithms.GeometryConstructors.Polygon
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ هذه الدالة مضلّعًا من الإحداثيات المحدّدة.
الاستخدام | المرتجعات |
---|
ee.Algorithms.GeometryConstructors.Polygon(coordinates, crs, geodesic, maxError, evenOdd) | هندسة |
الوسيطة | النوع | التفاصيل |
---|
coordinates | قائمة | قائمة LinearRings حيث يكون العنصر الأول هو الغلاف والباقي عبارة عن ثقوب، أو بالنسبة إلى المضلّع البسيط، قائمة النقاط أو أزواج الأرقام بترتيب x وy |
crs | التوقّع، القيمة التلقائية: null | نظام الإسناد المكاني للإحداثيات القيمة التلقائية هي إسقاط المدخلات، حيث يُفترض أنّ الأرقام هي EPSG:4326. |
geodesic | قيمة منطقية، القيمة التلقائية: null | إذا كانت القيمة false، تكون الحواف مستقيمة في العرض. إذا كانت القيمة هي true، تكون الحواف منحنية لتتّبع أقصر مسار على سطح الأرض. القيمة التلقائية هي الحالة الجيوديسية للمدخلات، أو "صحيح" إذا كانت المدخلات أرقامًا. |
maxError | ErrorMargin، القيمة التلقائية: null | الحدّ الأقصى للخطأ عندما يجب إعادة عرض الشكل الهندسي للإدخال إلى عرض النتائج المطلوب بشكل صريح أو حالة خطوط الطول والعرض |
evenOdd | قيمة منطقية، القيمة التلقائية: true | إذا كانت القيمة صحيحة، سيتم تحديد الأجزاء الداخلية للمضلّع حسب قاعدة الزوجي/الفردي، حيث تكون النقطة داخل المضلّع إذا كانت تعبر عددًا فرديًا من الحواف للوصول إلى نقطة في اللانهاية. وفي الحالات الأخرى، تستخدم المضلّعات قاعدة "اليسار من الداخل"، حيث تكون الأجزاء الداخلية على الجانب الأيسر من حواف الشكل عند تتبُّع الرؤوس بالترتيب المحدّد. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates a polygon geometry from a list of coordinates, representing its outer boundary (shell) and optionally inner boundaries (holes).\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the coordinate system (\u003ccode\u003ecrs\u003c/code\u003e), whether edges are straight or follow Earth's curvature (\u003ccode\u003egeodesic\u003c/code\u003e), and error tolerance during reprojection (\u003ccode\u003emaxError\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDefines polygon interiors using either the even/odd rule (default) or the left-inside rule, affecting how points within the polygon are identified.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Polygon\n\nConstructs a Polygon from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Polygon(coordinates, `*crs* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | A list of LinearRings where the first is the shell and the rest are holes, or for a simple polygon, a list of Points or pairs of Numbers in x,y order. |\n| `crs` | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, default: null | If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers. |\n| `maxError` | ErrorMargin, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\n| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]