ee.Geometry.LineString
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک ee.Geometry که یک LineString را توصیف می کند، می سازد.
برای راحتی کار، زمانی که همه آرگومان ها اعداد هستند، می توان از varargs استفاده کرد. این امکان ایجاد geodesic EPSG:4326 LineStrings با تعداد زوج آرگومان را فراهم می کند، به عنوان مثال ee.Geometry.LineString (aLng، aLat، bLng، bLat، ...).
استفاده | برمی گرداند | ee.Geometry.LineString(coords, proj , geodesic , maxError ) | Geometry.LineString |
استدلال | تایپ کنید | جزئیات | coords | فهرست<هندسه>|فهرست<لیست<تعداد>>|فهرست<تعداد> | لیستی از حداقل دو نقطه. ممکن است فهرستی از مختصات در قالب GeoJSON 'LineString'، فهرستی از حداقل دو شی ee.Geometry که یک نقطه را توصیف می کند، یا فهرستی از حداقل چهار عدد که مختصات [x,y] حداقل دو نقطه را تعریف می کند. |
proj | طرح ریزی، اختیاری | طرح ریزی این هندسه. اگر مشخص نشده باشد، پیشفرض نمایش ورودی ee.Geometry یا EPSG:4326 اگر ورودیهای ee.Geometry وجود ندارد، است. |
geodesic | بولی، اختیاری | اگر نادرست باشد، لبه ها در برآمدگی مستقیم هستند. اگر درست باشد، لبهها برای دنبال کردن کوتاهترین مسیر روی سطح زمین خمیده میشوند. حالت پیشفرض، وضعیت ژئودزیکی ورودیها است، یا اگر ورودیها عدد باشند، درست است. |
maxError | ErrorMargin، اختیاری است | حداکثر خطا در زمانی که هندسه ورودی باید به یک پیشبینی نتیجه درخواستی صریحاً یا حالت ژئودزیک بازتاب داده شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]