ee.Feature.length
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
طول قسمت های خطی هندسه یک ویژگی معین را برمی گرداند. قطعات چند ضلعی نادیده گرفته می شوند. طول چند هندسه مجموع طول اجزای آنهاست.
استفاده | برمی گرداند | Feature. length ( maxError , proj ) | شناور |
استدلال | تایپ کنید | جزئیات | این: feature | عنصر | ویژگی که هندسه از آن گرفته شده است. |
maxError | ErrorMargin، پیش فرض: null | حداکثر مقدار خطای قابل تحمل هنگام انجام هر گونه بازطراحی ضروری. |
proj | Projection، پیش فرض: null | در صورت مشخص شدن، نتیجه در واحدهای سیستم مختصات این طرح خواهد بود. در غیر این صورت بر حسب متر خواهد بود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThis function calculates the total length of linear geometries within a given feature, excluding any polygonal parts.\u003c/p\u003e\n"],["\u003cp\u003eFor features with multiple geometries, the function sums the lengths of each individual component to determine the overall length.\u003c/p\u003e\n"],["\u003cp\u003eResults are given in meters by default, but can be specified in the units of a provided projection.\u003c/p\u003e\n"],["\u003cp\u003eAn optional error margin can be specified for handling reprojection, if needed.\u003c/p\u003e\n"]]],["The `Feature.length()` method calculates the total length of linear components within a feature's geometry, excluding polygonal parts. It returns a float value representing this length. The method accepts optional `maxError` and `proj` arguments. `maxError` defines the acceptable error during reprojection, and `proj` specifies the desired coordinate system for the output, defaulting to meters if unspecified. The feature itself is mandatory for which the length is calculated.\n"],null,["# ee.Feature.length\n\nReturns the length of the linear parts of the geometry of a given feature. Polygonal parts are ignored. The length of multi geometries is the sum of the lengths of their components.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------|---------|\n| Feature.length`(`*maxError* `, `*proj*`)` | Float |\n\n| Argument | Type | Details |\n|-----------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Element | The feature from which the geometry is taken. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | If specified, the result will be in the units of the coordinate system of this projection. Otherwise it will be in meters. |"]]