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