voxcity.geoprocessor.draw.edit_building¶
Interactive building editor for ipyleaflet maps.
Provides: - edit_building: Full interactive editor (add rectangles/polygons, delete buildings) - create_building_editor: Convenience wrapper that displays the map
Functions¶
|
Interactive map editor: Draw rectangles, freehand polygons, and DELETE existing buildings. |
|
Creates and displays an interactive building editor. |
Module Contents¶
- voxcity.geoprocessor.draw.edit_building.edit_building(voxcity=None, building_gdf=None, initial_center=None, zoom=17, rectangle_vertices=None)[source]¶
Interactive map editor: Draw rectangles, freehand polygons, and DELETE existing buildings.
- Parameters:
voxcity (VoxCity, optional) – VoxCity object to extract data from.
building_gdf (GeoDataFrame, optional) – Existing buildings.
initial_center (tuple, optional) – (lon, lat) map center.
zoom (int) – Initial zoom level. Default=17.
rectangle_vertices (list, optional) – Rectangle corner coordinates.
- Returns:
(Map, updated_gdf)
- Return type:
tuple