إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Geometry.MultiPolygon
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ هذه الدالة ee.Geometry تصف MultiPolygon.
لتسهيل الأمر، يمكن استخدام الوسيط المتغيّر عندما تكون جميع الوسيطات أرقامًا. يتيح ذلك إنشاء MultiPolygons بنظام EPSG:4326 الجيوديسي باستخدام مضلّع واحد مع LinearRing واحد مع عدد زوجي من الوسيطات، مثل ee.Geometry.MultiPolygon(aLng, aLat, bLng, bLat, ..., aLng, aLat).
الاستخدام | المرتجعات |
---|
ee.Geometry.MultiPolygon(coords, proj, geodesic, maxError, evenOdd) | Geometry.MultiPolygon |
الوسيطة | النوع | التفاصيل |
---|
coords | List<Geometry>|List<List<List<List<Number>>>>|List<Number> | قائمة بالمضلّعات يمكن أن تكون قائمة إحداثيات بتنسيق GeoJSON
MultiPolygon، أو قائمة بعناصر ee.Geometry تصف مضلّعًا، أو قائمة أرقام تحدّد حدود مضلّع واحد. |
proj | التوقّعات، اختيارية | إسقاط هذا الشكل الهندسي القيمة التلقائية هي إسقاط المدخلات، حيث يُفترض أنّ الأرقام هي EPSG:4326. |
geodesic | قيمة منطقية، اختيارية | إذا كانت القيمة false، تكون الحواف مستقيمة في العرض. إذا كانت القيمة هي true، تكون الحواف منحنية لتتّبع أقصر مسار على سطح الأرض. القيمة التلقائية هي الحالة الجيوديسية للمدخلات، أو "صحيح" إذا كانت المدخلات أرقامًا. |
maxError | ErrorMargin، اختياري | الحدّ الأقصى للخطأ عندما يجب إعادة عرض الشكل الهندسي للإدخال إلى عرض النتائج المطلوب بشكل صريح أو حالة خطوط الطول والعرض |
evenOdd | قيمة منطقية، اختيارية | إذا كانت القيمة صحيحة، سيتم تحديد الأجزاء الداخلية للمضلّع حسب قاعدة الزوجي/الفردي، حيث تكون النقطة داخل المضلّع إذا كانت تعبر عددًا فرديًا من الحواف للوصول إلى نقطة في اللانهاية. وفي الحالات الأخرى، تستخدم المضلّعات قاعدة "اليسار-الداخل"، حيث تكون الأجزاء الداخلية على الجانب الأيسر من حواف الشكل عند التنقّل بين الرؤوس بالترتيب المحدّد. إذا لم يتم تحديد هذه السمة، تكون القيمة التلقائية هي "صحيح". |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eDefines a MultiPolygon geometry in Earth Engine, accepting GeoJSON-like coordinates, \u003ccode\u003eee.Geometry.Polygon\u003c/code\u003e objects, or even numbers for a single polygon.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility in specifying projection (\u003ccode\u003eproj\u003c/code\u003e), geodesic behavior (\u003ccode\u003egeodesic\u003c/code\u003e), error margin (\u003ccode\u003emaxError\u003c/code\u003e), and polygon interior calculation (\u003ccode\u003eevenOdd\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSimplifies creating single, geodesic EPSG:4326 MultiPolygons using a series of number coordinates representing a single LinearRing within a single Polygon.\u003c/p\u003e\n"]]],[],null,["# ee.Geometry.MultiPolygon\n\n\u003cbr /\u003e\n\nConstructs an ee.Geometry describing a MultiPolygon.\n\n\u003cbr /\u003e\n\nFor convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 MultiPolygons with a single Polygon with a single LinearRing given an even number of arguments, e.g. ee.Geometry.MultiPolygon(aLng, aLat, bLng, bLat, ..., aLng, aLat).\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------------|-----------------------|\n| `ee.Geometry.MultiPolygon(coords, `*proj* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry.MultiPolygon |\n\n| Argument | Type | Details |\n|------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coords` | List\\\u003cGeometry\\\u003e\\|List\\\u003cList\\\u003cList\\\u003cList\\\u003cNumber\\\u003e\\\u003e\\\u003e\\\u003e\\|List\\\u003cNumber\\\u003e | A list of polygons. May be a list of coordinates in the GeoJSON 'MultiPolygon' format, a list of ee.Geometry objects describing a Polygon, or a list of numbers defining a single polygon boundary. |\n| `proj` | Projection, optional | The projection of this geometry. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, optional | 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, optional | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\n| `evenOdd` | Boolean, optional | 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. If unspecified, defaults to true. |"]]