ee.Feature.cutLines
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
هندسه های LineString، MultiLineString و LinearRing را با برش آنها به قطعاتی که بیشتر از فاصله داده شده در طول آنها نباشد، به یک MultiLineString تبدیل می کند. همه انواع هندسه دیگر به یک MultiLineString خالی تبدیل می شوند.
استفاده | برمی گرداند | Feature. cutLines (distances, maxError , proj ) | ویژگی |
استدلال | تایپ کنید | جزئیات | این: feature | عنصر | خطوط هندسه پیش فرض این ویژگی را برش می دهد. |
distances | فهرست کنید | فواصل در امتداد هر LineString برای برش خط به قطعات جداگانه، اندازه گیری شده در واحدهای پروژه داده شده، یا متر اگر proj مشخص نشده باشد. |
maxError | ErrorMargin، پیش فرض: null | حداکثر مقدار خطای قابل تحمل هنگام انجام هر گونه بازطراحی ضروری. |
proj | Projection، پیش فرض: null | پیش بینی نتیجه و اندازه گیری فاصله، یا EPSG:4326 اگر مشخص نشده باشد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe function \u003ccode\u003ecutLines\u003c/code\u003e converts LineString, MultiLineString, and LinearRing geometries into a MultiLineString by segmenting them into shorter lengths.\u003c/p\u003e\n"],["\u003cp\u003eSegmentation is determined by the \u003ccode\u003edistances\u003c/code\u003e parameter, specifying the length of each segment in the projection units or meters.\u003c/p\u003e\n"],["\u003cp\u003eGeometries other than LineString, MultiLineString, and LinearRing are converted into an empty MultiLineString.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify the \u003ccode\u003emaxError\u003c/code\u003e for reprojection and the \u003ccode\u003eproj\u003c/code\u003e for distance measurements and output projection.\u003c/p\u003e\n"]]],["The core functionality involves cutting `LineString`, `MultiLineString`, and `LinearRing` geometries into segments based on specified distances. The `cutLines` method, applied to a `Feature`, takes a list of `distances` and divides the line into parts no longer than those distances. `maxError` handles reprojection errors, while `proj` defines the projection for distance measurements, defaulting to EPSG:4326. Other geometry types become empty `MultiLineString`s.\n"],null,["# ee.Feature.cutLines\n\nConverts LineString, MultiLineString, and LinearRing geometries into a MultiLineString by cutting them into parts no longer than the given distance along their length. All other geometry types will be converted to an empty MultiLineString.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------|---------|\n| Feature.cutLines`(distances, `*maxError* `, `*proj*`)` | Feature |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | Cuts the lines of this feature's default geometry. |\n| `distances` | List | Distances along each LineString to cut the line into separate pieces, measured in units of the given proj, or meters if proj is unspecified. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | Projection of the result and distance measurements, or EPSG:4326 if unspecified. |"]]