Extract buildings and LOD models
dmi_buildingsExtract building outlines and LOD1.3/LOD2 3D models from LAS/LAZ/TIF point clouds, 3D Tiles or DMI projects, exporting them as SHP, KML, KMZ, GLB, STL or DXF files.
Instructions
Extract buildings and model them.
source: LAS/LAZ/TIF point cloud, a 3D Tiles folder (contains tileset.json) or a saved .DMI project. out_dir: output folder (created if needed; same-named files are overwritten). outline_formats: roof/waist/foot outlines, any of SHP, KML, KMZ (comma list). KML/KMZ need utm_zone. model / model_formats: 3D models, any of GLB, STL, DXF, SHP, KML, KMZ (comma list). lod: "1.3" flat-roof blocks with stepped heights, "2" roof shapes as well. per_building: one model file per building instead of one merged file. grid_step_m, min_height_m, min_size_m: grid step (0.3-0.5 m), lowest building height and smallest building size; for point clouds the defaults are 0.5, 2 and 4. save_project: optional path of a .DMI project to keep.
Runtime grows with area: about half a minute for 1 million points, up to an hour for a large block. Read the bldg,
bldgout, bmall and bmexport entries of summary: rings= outlines, baked= modelled buildings, file= output path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"out_dir": "<out_dir>"
},
"name": "dmi_buildings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lod | No | 1.3 | |
| model | No | ||
| source | Yes | ||
| out_dir | Yes | ||
| utm_zone | No | ||
| timeout_s | No | ||
| min_size_m | No | ||
| grid_step_m | No | ||
| min_height_m | No | ||
| model_params | No | ||
| per_building | No | ||
| save_project | No | ||
| model_formats | No | GLB | |
| outline_formats | No | SHP | |
| extraction_params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||