Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ui.Map.DrawingTools.toFeatureCollection
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Возвращает коллекцию объектов, в которой каждая геометрия в инструментах рисования является объектом.
Использование | Возврат | DrawingTools. toFeatureCollection (indexProperty) | FeatureCollection |
Аргумент | Тип | Подробности | это: ui.map.drawingtools | ui.Map.DrawingTools | Экземпляр ui.Map.DrawingTools. |
indexProperty | Нить | Свойство с этим именем будет назначено каждому объекту в возвращаемой коллекции. Значением свойства будет число, соответствующее индексу геометрического слоя, к которому принадлежит данная геометрия. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eReturns a FeatureCollection where each drawn geometry is represented as a separate feature.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etoFeatureCollection()\u003c/code\u003e method takes an optional \u003ccode\u003eindexProperty\u003c/code\u003e argument, allowing you to assign a unique index to each feature based on its layer.\u003c/p\u003e\n"],["\u003cp\u003eAccess this functionality through the \u003ccode\u003eui.Map.DrawingTools\u003c/code\u003e instance, specifically using the DrawingTools object.\u003c/p\u003e\n"]]],["The `DrawingTools.toFeatureCollection` method converts drawn geometries into a FeatureCollection. It operates on a `ui.Map.DrawingTools` instance. The method accepts an `indexProperty` argument (a string). This property is added to each feature in the collection, and its value will reflect the index of the geometry layer where it was drawn. It returns a FeatureCollection object.\n"],null,["# ui.Map.DrawingTools.toFeatureCollection\n\n\u003cbr /\u003e\n\nReturns a feature collection in which each geometry in the drawing tools is a feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|-------------------|\n| DrawingTools.toFeatureCollection`(indexProperty)` | FeatureCollection |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `indexProperty` | String | A property with this name will be assigned to every feature in the returned collection. The value of the property will be a number that corresponds to the index of the geometry layer to which the geometry belongs. |"]]