Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ee.Feature.length
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает длину линейных частей геометрии заданного объекта. Полигональные части игнорируются. Длина мультигеометрий равна сумме длин их компонентов.
Использование | Возврат | Feature. length ( maxError , proj ) | Плавать |
Аргумент | Тип | Подробности | это: feature | Элемент | Элемент, из которого взята геометрия. |
maxError | ErrorMargin, по умолчанию: null | Максимально допустимая погрешность при выполнении любого необходимого перепроецирования. |
proj | Проекция, по умолчанию: null | Если указано, результат будет в единицах системы координат данной проекции. В противном случае — в метрах. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\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. |"]]