إشعار: يجب
إثبات أهلية جميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إلى Earth Engine.
ee.Geometry.LineString
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تنشئ هذه الدالة عنصر ee.Geometry يصف LineString.
لتسهيل الأمر، يمكن استخدام الوسيط المتغيّر عندما تكون جميع الوسيطات أرقامًا. يتيح ذلك إنشاء LineStrings جيوديسية EPSG:4326 مع عدد زوجي من الوسيطات، مثل ee.Geometry.LineString(aLng, aLat, bLng, bLat, ...).
الاستخدام | المرتجعات |
---|
ee.Geometry.LineString(coords, proj, geodesic, maxError) | Geometry.LineString |
الوسيطة | النوع | التفاصيل |
---|
coords | List<Geometry>|List<List<Number>>|List<Number> | قائمة تتضمّن نقطتَين على الأقل يمكن أن تكون قائمة بالإحداثيات بتنسيق GeoJSON LineString، أو قائمة بعنصرَين على الأقل من النوع ee.Geometry يصفان نقطة، أو قائمة بأربعة أرقام على الأقل تحدّد إحداثيات [x,y] لنقطتَين على الأقل. |
proj | التوقّعات، اختيارية | إسقاط هذا الشكل الهندسي إذا لم يتم تحديد نظام الإسقاط، سيكون نظام الإسقاط التلقائي هو نظام إسقاط ee.Geometry للإدخال، أو EPSG:4326 إذا لم تكن هناك مدخلات ee.Geometry. |
geodesic | قيمة منطقية، اختيارية | إذا كانت القيمة false، تكون الحواف مستقيمة في العرض. إذا كانت القيمة هي true، تكون الحواف منحنية لتتّبع أقصر مسار على سطح الأرض. القيمة التلقائية هي الحالة الجيوديسية للمدخلات، أو "صحيح" إذا كانت المدخلات أرقامًا. |
maxError | ErrorMargin، اختياري | الحدّ الأقصى للخطأ عندما يجب إعادة عرض الشكل الهندسي للإدخال إلى عرض النتائج المطلوب بشكل صريح أو حالة خطوط الطول والعرض |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCreates a LineString geometry, which represents a line segment on Earth's surface.\u003c/p\u003e\n"],["\u003cp\u003eAccepts a list of coordinates, projection, geodesic setting, and error margin for construction.\u003c/p\u003e\n"],["\u003cp\u003eAllows convenient creation of geodesic lines using coordinate pairs (longitude, latitude).\u003c/p\u003e\n"],["\u003cp\u003eDefaults to EPSG:4326 projection if no input geometry's projection is specified.\u003c/p\u003e\n"],["\u003cp\u003eEnables both straight and curved line representations based on the \u003ccode\u003egeodesic\u003c/code\u003e parameter.\u003c/p\u003e\n"]]],[],null,["# ee.Geometry.LineString\n\n\u003cbr /\u003e\n\nConstructs an ee.Geometry describing a LineString.\n\n\u003cbr /\u003e\n\nFor convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 LineStrings given an even number of arguments, e.g. ee.Geometry.LineString(aLng, aLat, bLng, bLat, ...).\n\n| Usage | Returns |\n|--------------------------------------------------------------------------|---------------------|\n| `ee.Geometry.LineString(coords, `*proj* `, `*geodesic* `, `*maxError*`)` | Geometry.LineString |\n\n| Argument | Type | Details |\n|------------|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coords` | List\\\u003cGeometry\\\u003e\\|List\\\u003cList\\\u003cNumber\\\u003e\\\u003e\\|List\\\u003cNumber\\\u003e | A list of at least two points. May be a list of coordinates in the GeoJSON 'LineString' format, a list of at least two ee.Geometry objects describing a point, or a list of at least four numbers defining the \\[x,y\\] coordinates of at least two points. |\n| `proj` | Projection, optional | The projection of this geometry. If unspecified, the default is the projection of the input ee.Geometry, or EPSG:4326 if there are no ee.Geometry inputs. |\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. |"]]