Roofer CLI App¶
roofer is a command line application for generating LoD 1.2, LoD 1.3 and LoD 2.2 building models from pointclouds in the CityJSONSeq format.
With the roofer CLI application you can:
Generate 3D building models for large areas with a reasonably small memory footprint. This is achieved by processing the input data in square tiles. No pre-tiling is needed.
Benefit from multi-threading for faster processing.
Read common vector input sources and filter them based on attributes or spatial extent. This means you do not need to crop the input data beforehand.
Obtain detailed information per building object about the reconstruction process and the quality of the generated models and the input point cloud.
Usage¶
Automatic LoD 2.2 building reconstruction from airborne lidar pointclouds
Usage:
roofer [options] <pointcloud-path>... <polygon-source> <output-directory>
roofer [options] (-c | --config) <config-file> [(<pointcloud-path>... <polygon-source>)] <output-directory>
roofer -h | --help
roofer -H | --help-all
roofer -a | --attributes
roofer -v | --version
Examples¶
roofer pointcloud.laz footprints.gpkg output-dir
roofer --lod12 --lod22 pointcloud.laz footprints.gpkg output-dir
roofer --filter 'identificatie=1980100000265200' pointcloud.laz footprints.gpkg output-dir
roofer -c config.toml output-dir
roofer --tiling pointcloud.laz footprints.gpkg - | cjseq collect > buildings.city.json
Positional arguments¶
- <pointcloud-path>¶
Path to pointcloud file (.LAS or .LAZ) or folder that contains pointcloud files.
- <polygon-source>¶
Path to roofprint polygon source. Can be an OGR supported file (eg. GPKG) or database connection string.
- <output-directory>¶
Supply a directory for file output, or
-to stream CityJSONSeq to stdout. The same value can be set withoutput-directory = "-"under[output]in TOML.
General options¶
- -h, --help (default: false)¶
Show help message
- -H, --help-all (default: false)¶
Show full help message
- -a, --attributes (default: false)¶
List output attributes
- -v, --version (default: false)¶
Show version
- -j, --jobs <int> (default: 4)¶
Number of worker jobs to use. Reconstruction uses roughly jobs - 1 threads.
- -c, --config <string> (default: <no value>)¶
Configuration file
- --trace-interval <int> (default: 10)¶
Interval for tracing in seconds
- --loglevel (trace|debug|info) (default: info)¶
Specify loglevel
Input options¶
- --unit-scale <float> (default: 1)¶
Metres per input coordinate unit. All metre-based reconstruction, crop, and output parameters are converted to input coordinate units using this factor. For feet, use
0.3048.
- --id-attribute <string> (default: <no value>)¶
Building ID attribute to be used as identifier in CityJSONSeq output.
- --force-lod11-attribute <string> (default: <no value>)¶
Input attribute (boolean) to force individual buildings to always be reconstructed using simple extrusion (LoD 1.1).
- --yoc-attribute <string> (default: <no value>)¶
Input attribute (integer) containing the building’s year of construction. Only relevant when multiple pointclouds are provided.
- --h-terrain-attribute <string> (default: <no value>)¶
Input attribute (float) with fallback terrain elevation for each building. Used in case no terrain elevation can be derived from the pointcloud. See also –h-terrain-strategy
- --h-roof-attribute <string> (default: <no value>)¶
Input attribute (float) containing fallback roof height for buildings in case no roof height can be derived from the pointcloud.
- --polygon-source-layer <string> (default: <no value>)¶
Select this layer name from
<polygon-source>. By default the first layer is used.
- --polygon-snap-threshold <float> (default: 0)¶
Snap all input footprint and underpass polygons before validation, in metres. Zero disables input snapping.
- --underpass-source <string> (default: <no value>)¶
Optional OGR underpass polygon datasource.
- --underpass-source-layer <string> (default: <no value>)¶
Underpass layer (default: first layer).
- --underpass-attributes name[,name,...] (default: [])¶
Copy selected source attributes to matching OuterCeilingSurface objects. All names must exist in underpass-source. CLI: comma-separated names; TOML: array of names.
- --underpass-id-attribute <string> (default: <no value>)¶
Underpass building ID attribute (default: id-attribute).
- --underpass-height-attribute <string> (default: <no value>)¶
Numeric absolute ceiling elevation attribute. If omitted or its value is null, use underpass-default-height above the building floor.
- --underpass-default-height <float> (default: 4)¶
Underpass clearance above the floor when the height attribute is omitted or its value is null, in metres.
- --filter <string> (default: <no value>)¶
Specify WHERE clause in OGR SQL to select specfic features from
<polygon-source>. See https://gdal.org/en/stable/user/ogr_sql_dialect.html#where
- --box (xmin ymin xmax ymax) (default: <no value>)¶
Axis aligned bounding box specifying the region of interest. Data outside of this region will be ignored. Coordinates are in the input data’s coordinate units and are not affected by
unit-scale.
- --srs <string> (default: <no value>)¶
Manually set or override Spatial Reference System for input data.
- --bld-class <int> (default: 6)¶
LAS classification code that contains the building points.
- --grnd-class <int> (default: 2)¶
LAS classification code that constains the ground points.
- --[no-]skip-pc-check (default: false)¶
Disable/enable check if all supplied pointcloud files exist.
Crop options¶
- --[no-]simplify (default: true)¶
Simplify input rootprints to remove (nearly) duplicated vertices.
- --ceil-point-density <float> (default: 20)¶
Enforce this point density ceiling (points per square metre) on each building pointcloud.
- --cellsize <float> (default: 0.5)¶
Cellsize used for quick pointcloud analysis (eg. point density and nodata regions), in metres.
- --min-building-density <float> (default: 1)¶
Minimum building-class point density (points/m²) below which a rootprint’s pointcloud is flagged insufficient.
- --max-nodata-fraction <float> (default: 1)¶
Maximum fraction of the roofprint area without pointcloud data. Above this threshold, a rootprint’s pointcloud is flagged insufficient.
- --terrain-grid-cellsize <float> (default: 10)¶
Cellsize used for the crop phase terrain fallback grid, in metres.
- --terrain-grid-search-radius <int> (default: 3)¶
Number of terrain grid cells to search around a building when its local fallback cells do not contain terrain points.
- --terrain-nodata-mode <string> (default: fill_small_gaps)¶
EXPERIMENTAL: How missing terrain grid samples are handled during output triangulation when
--terrainis enabled:complete_quads,local_triangles, orfill_small_gaps. This option may change or be removed in a future release.
- --lod11-fallback-area <int> (default: 69000)¶
LoD 1.1 fallback threshold area in square metres. If the area of the roofprint is larger than this value, the building will be always be reconstructed using a LoD 1.1 extrusion.
- --[no-]clear-insufficient (default: true)¶
Do not attempt to reconstruct buildings with insufficient pointcloud data. If
--h-roof-attributeis set, an LoD 1.1 extrusion will be performed, otherwise no 3D model will be generated.
- --[no-]compute-pc-98p (default: false)¶
Compute and output the 98th percentile of pointcloud height for each building.
- --[no-]crop-only (default: false)¶
Only perform the crop phase, do not perform reconstruction,
- --[no-]crop-output (default: false)¶
Output building pointclouds from crop phase as LAS files.
- --[no-]crop-output-all (default: false)¶
Output building pointclouds for each pointcloud. Only relevant when multiple pointclouds are provided.Implies
--crop-output
- --[no-]crop-rasters (default: false)¶
Output rasterised pointcloud analytics from crop phase as GeoTIFF files. Implies
--crop-output
- --[no-]index (default: false)¶
Output index.gpkg file with quick pointcloud analystics from crop phase.
Reconstruction options¶
- --[no-]lod12 (default: false)¶
Generate LoD 1.2 geometry.
- --[no-]lod13 (default: false)¶
Generate LoD 1.3 geometry.
- --[no-]lod22 (default: true)¶
Generate LoD 2.2 geometry.
- --complexity-factor <float> (default: 0.888)¶
Balance between data fidelity (1) and smoothness (0).
- --[no-]clip-terrain (default: true)¶
Clip roofprints where patches of terrain points are detected.
- --lod13-step-height <float> (default: 3)¶
Maximum step height dissolved during LoD 1.3 generalisation, in metres.
- --plane-detect-k <int> (default: 15)¶
Neighbours used to grow planes.
- --plane-detect-min-points <int> (default: 15)¶
Minimum points in a detected plane.
- --plane-detect-epsilon <float> (default: 0.3)¶
Maximum plane fitting distance, in metres.
- --h-terrain-strategy (buffer_tile|buffer_user|user) (default: buffer_tile)¶
Terrain elevation selection strategy.
- --lod11-fallback-planes <int> (default: 900)¶
Maximum detected planes before aborting.
- --lod11-fallback-time <int> (default: 1800000)¶
Deprecated and ignored. Wall-clock reconstruction limits were removed because they are nondeterministic; use max-plane-count under [reconstruction.plane-detector] instead.
Output options¶
- --[no-]tiling (default: false)¶
Enable or disable output tiling.
- --tilesize (x y) (default: [1000,1000])¶
Tilesize for rectangular output tiles, in metres.
- --[no-]split-cjseq (default: false)¶
Output CityJSONSequence file for each building instead of one file per tile.
- --[no-]omit-metadata (default: false)¶
Omit metadata line in CityJSONSequence output.
- --[no-]terrain (default: false)¶
EXPERIMENTAL: Write one triangulated TINRelief feature per tile from the highest-quality pointcloud source. Its geometry, attributes, file naming, and configuration may change, and the feature may be removed in a future release.
- --cj-scale (x y z) (default: [1e-04,1e-04,1e-04])¶
CityJSON output vertex precision, in input map units.
- --cj-translate (x y z) (default: <no value>)¶
Translation applied to CityJSON output vertices, in input coordinate units. Uses dataset center by default.
- --attribute-rename key=value[,...] (default: azimuth=rf_azimuth,extrusion_mode=rf_extrusion_mode,force_lod11=rf_force_lod11,h_ground=rf_h_ground,h_pc_98p=rf_h_pc_98p,h_roof_50p=rf_h_roof_50p,h_roof_70p=rf_h_roof_70p,h_roof_max=rf_h_roof_max,h_roof_min=rf_h_roof_min,h_roof_ridge=rf_h_roof_ridge,has_underpass=rf_has_underpass,is_glass_roof=rf_is_glass_roof,is_mutated=rf_is_mutated,nodata_frac=rf_nodata_frac,nodata_r=rf_nodata_r,pc_select=rf_pc_select,pc_source=rf_pc_source,pc_year=rf_pc_year,pointcloud_unusable=rf_pointcloud_unusable,pt_density=rf_pt_density,reconstruction_time=rf_t_run,rmse_lod12=rf_rmse_lod12,rmse_lod13=rf_rmse_lod13,rmse_lod22=rf_rmse_lod22,roof_n_planes=rf_roof_planes,roof_n_ridgelines=rf_ridgelines,roof_type=rf_roof_type,slope=rf_slope,success=rf_success,val3dity_lod12=rf_val3dity_lod12,val3dity_lod13=rf_val3dity_lod13,val3dity_lod22=rf_val3dity_lod22,volume_lod12=rf_volume_lod12,volume_lod13=rf_volume_lod13,volume_lod22=rf_volume_lod22)¶
Rename output attributes. If no value is provided, the attribute will not be written. See the list of available attributes with
--attributes. By default attribute names are prefixed withrf_.
Output format¶
Roofer writes CityJSONSequence as newline-delimited JSON. Each feature represents one building, with an optional per-tile TINRelief terrain feature when --terrain is enabled.
Warning
Terrain output is experimental. Its geometry, attributes, file naming, and configuration may change, and the feature may be removed in a future release.
For terrain output, --terrain-nodata-mode controls whether only complete grid quads are triangulated, three-sample local triangles are retained, or isolated missing samples are interpolated before local triangulation.
Tip
In the near future we expect to introduce a converter program to convert the CityJSONSequence files to other formats like GPKG, OBJ and others.
Streaming to stdout¶
With - as the destination, Roofer writes one CityJSON header and flushes each
building feature as its reconstruction finishes. A reader can process the first
building while its neighbors are still running. Console diagnostics go to stderr.
For example, this validates the features as they arrive.
roofer -c config.toml - | cjval
With --tiling, buildings from different tiles can arrive in any order. Every
tile uses the scale and translation in the single stream header. By default the
translation is the center of the processing region in XY and zero in Z. Use
--cj-translate to supply an explicit origin. An empty selection produces just the
header.
Output attributes¶
- azimuth (default name: rf_azimuth)¶
The azimuth of a roofpart in degrees
- extrusion_mode (default name: rf_extrusion_mode)¶
Indicates what extrusion mode was used for the building.
standard: the regular LoD 1.2, 1.3 or 2.2 extrusion.lod11_fallback: all geometry was substituted with an LoD 1.1 extrusion.skip: no 3D geometry was generated
- force_lod11 (default name: rf_force_lod11)¶
Indicates if LoD 1.1 extrusion was forced for the building
- h_ground (default name: rf_h_ground)¶
The elevation of the floor of the building
- h_pc_98p (default name: rf_h_pc_98p)¶
The 98th percentile elevation of the building pointcloud
- h_roof_50p (default name: rf_h_roof_50p)¶
The 50th percentile roof elevation
- h_roof_70p (default name: rf_h_roof_70p)¶
The 70th percentile roof elevation
- h_roof_max (default name: rf_h_roof_max)¶
The maximum roof elevation
- h_roof_min (default name: rf_h_roof_min)¶
The minimum roof elevation
- h_roof_ridge (default name: rf_h_roof_ridge)¶
The main ridge elevation
- has_underpass (default name: rf_has_underpass)¶
Indicates if the reconstructed building contains at least one underpass
- is_glass_roof (default name: rf_is_glass_roof)¶
Indicates if a glass roof was detected
- is_mutated (default name: rf_is_mutated)¶
Indicates if the building was mutated between multiple input pointclouds (if multiple input pointclouds were provided)
- nodata_frac (default name: rf_nodata_frac)¶
Indicates fraction (in the range [0,1]) of the roofprint area that is not covered by pointcloud data
- nodata_r (default name: rf_nodata_r)¶
Indicates the radius of the largest circle in the roofprint that is not covered by pointcloud data, in input map units
- pc_select (default name: rf_pc_select)¶
Indicates why the input pointcloud was selected for reconstruction. Only relevant if multiple input pointclouds were provided
- pc_source (default name: rf_pc_source)¶
Indicates which input pointcloud was used for reconstruction
- pc_year (default name: rf_pc_year)¶
Indicates the acquisition year of the selected input pointcloud
- pointcloud_unusable (default name: rf_pointcloud_unusable)¶
Indicates if the pointcloud was found to be insufficient for reconstruction
- pt_density (default name: rf_pt_density)¶
Indicates the point density inside the roofprint, in points per square input map unit
- reconstruction_time (default name: rf_t_run)¶
Reconstruction time in milliseconds
- rmse_lod12 (default name: rf_rmse_lod12)¶
The Root Mean Square Erorr of the LOD12 geometry, in input map units
- rmse_lod13 (default name: rf_rmse_lod13)¶
The Root Mean Square Erorr of the LOD13 geometry, in input map units
- rmse_lod22 (default name: rf_rmse_lod22)¶
The Root Mean Square Erorr of the LOD22 geometry, in input map units
- roof_n_planes (default name: rf_roof_planes)¶
The number of roofplanes detected in the pointcloud (could be different from the generated mesh model)
- roof_n_ridgelines (default name: rf_ridgelines)¶
The number of ridgelines detected in the pointcloud (could be different from the generated mesh model)
- roof_type (default name: rf_roof_type)¶
Roof type. Can be
no points,no planes,horizontal,multiple horizontal, orslanted
- slope (default name: rf_slope)¶
The slope of a roofpart in degrees
- success (default name: rf_success)¶
Indicates if processing completed without unexpected errors
- val3dity_lod12 (default name: rf_val3dity_lod12)¶
Lists val3dity codes for LoD 1.2 geometry
- val3dity_lod13 (default name: rf_val3dity_lod13)¶
Lists val3dity codes for LoD 1.3 geometry
- val3dity_lod22 (default name: rf_val3dity_lod22)¶
Lists val3dity codes for LoD 2.2 geometry
- volume_lod12 (default name: rf_volume_lod12)¶
The volume of the LoD 1.2 geometry, in cubic input map units
- volume_lod13 (default name: rf_volume_lod13)¶
The volume of the LoD 1.3 geometry, in cubic input map units
- volume_lod22 (default name: rf_volume_lod22)¶
The volume of the LoD 2.2 geometry, in cubic input map units
Underpass attributes¶
An explicit underpass-height-attribute value is used as an absolute ceiling
elevation. If the attribute is omitted from the configuration or its value is
null or unset, Roofer uses the building floor elevation plus
underpass-default-height (4 m by default). Only these fallback ceilings can
be lowered to fit below the roof. Lowering uses underpass-roof-margin and
stops at underpass-min-height above the highest ground in the passage. Where
the roof is at or below the resulting ceiling, the opening cuts through the
roof.
The building attribute rf_has_underpass is a boolean indicating whether the
reconstructed building contains at least one underpass ceiling. It is false
when all matching inputs are skipped or lie outside the reconstructed footprint,
and for LoD 1 and fallback extrusions. Rename or omit it using
[output.attributes] has_underpass, like the other output attributes.
Select attributes from the underpass polygon source to copy onto the matching
OuterCeilingSurface semantic objects:
[input]
underpass-source = "underpasses.gpkg"
underpass-attributes = ["underpass_id", "name"]
The CLI equivalent is --underpass-attributes underpass_id,name (a single name
is also accepted). Every selected name must exist in the source layer; missing
fields cause an error before reconstruction. Boolean, integer, real and string
values retain their types, and null or unset values remain null. Other OGR
field types use their text representation. Original attribute names are kept;
the reserved CityJSON type field remains OuterCeilingSurface.
Where polygons overlap, the input with the highest adjusted ceiling supplies the attributes. Equal adjusted heights use the first input in source order. Selecting attributes retains ceiling boundaries between different inputs, including ceilings at the same height.
Config file¶
Below is an example of a TOML configuration file for the roofer CLI application. It shows all the available options. Some of these options are also available as command line arguments, in case one option is provided both in the configuration file and as a command line argument, the command line argument takes precedence.
### Input options
[input]
## Path to roofprint polygons source. Can be an OGR supported file (eg. GPKG) or database connection string.
# polygon-source = ""
## Metres per input coordinate unit. All metre-based reconstruction, crop, and output parameters are converted to input coordinate units using this factor. For feet, use `0.3048`.
unit-scale = 1
## Building ID attribute to be used as identifier in CityJSONSeq output.
# id-attribute =
## Input attribute (boolean) to force individual buildings to always be reconstructed using simple extrusion (LoD 1.1).
# force-lod11-attribute =
## Input attribute (integer) containing the building's year of construction. Only relevant when multiple pointclouds are provided.
# yoc-attribute =
## Input attribute (float) with fallback terrain elevation for each building. Used in case no terrain elevation can be derived from the pointcloud. See also --h-terrain-strategy
# h-terrain-attribute =
## Input attribute (float) containing fallback roof height for buildings in case no roof height can be derived from the pointcloud.
# h-roof-attribute =
## Select this layer name from `<polygon-source>`. By default the first layer is used.
# polygon-source-layer =
## Snap all input footprint and underpass polygons before validation, in metres. Zero disables input snapping.
polygon-snap-threshold = 0
## Optional OGR underpass polygon datasource.
# underpass-source =
## Underpass layer (default: first layer).
# underpass-source-layer =
## Copy selected source attributes to matching OuterCeilingSurface objects. All names must exist in underpass-source. CLI: comma-separated names; TOML: array of names.
underpass-attributes = []
## Underpass building ID attribute (default: id-attribute).
# underpass-id-attribute =
## Numeric absolute ceiling elevation attribute. If omitted or its value is null, use underpass-default-height above the building floor.
# underpass-height-attribute =
## Underpass clearance above the floor when the height attribute is omitted or its value is null, in metres.
underpass-default-height = 4
## Specify WHERE clause in OGR SQL to select specfic features from `<polygon-source>`. See https://gdal.org/en/stable/user/ogr_sql_dialect.html#where
# filter =
## Axis aligned bounding box specifying the region of interest. Data outside of this region will be ignored. Coordinates are in the input data's coordinate units and are not affected by `unit-scale`.
# box = [100, 100, 200, 200]
## Manually set or override Spatial Reference System for input data.
# srs = "EPSG:7415"
## LAS classification code that contains the building points.
bld-class = 6
## LAS classification code that constains the ground points.
grnd-class = 2
## Disable/enable check if all supplied pointcloud files exist.
skip-pc-check = false
[[input.pointclouds]]
## Name of the pointcloud
name = ""
## Path to the pointcloud
source = [""]
## LAS classification code that contains the ground points.
ground_class = 2
## LAS classification code that contains the building points.
building_class = 6
## Quality
quality = 0
## Date
date = 0
## Force LoD11
force_lod11 = false
## Select only for date
select_only_for_date = false
### Crop options
[crop]
## Simplify input rootprints to remove (nearly) duplicated vertices.
simplify = true
## Enforce this point density ceiling (points per square metre) on each building pointcloud.
ceil-point-density = 20
## Cellsize used for quick pointcloud analysis (eg. point density and nodata regions), in metres.
cellsize = 0.5
## Minimum building-class point density (points/m²) below which a rootprint's pointcloud is flagged insufficient.
min-building-density = 1
## Maximum fraction of the roofprint area without pointcloud data. Above this threshold, a rootprint's pointcloud is flagged insufficient.
max-nodata-fraction = 1
## Cellsize used for the crop phase terrain fallback grid, in metres.
terrain-grid-cellsize = 10
## Number of terrain grid cells to search around a building when its local fallback cells do not contain terrain points.
terrain-grid-search-radius = 3
## EXPERIMENTAL: How missing terrain grid samples are handled during output triangulation when `--terrain` is enabled: `complete_quads`, `local_triangles`, or `fill_small_gaps`. This option may change or be removed in a future release.
terrain-nodata-mode = "fill_small_gaps"
## LoD 1.1 fallback threshold area in square metres. If the area of the roofprint is larger than this value, the building will be always be reconstructed using a LoD 1.1 extrusion.
lod11-fallback-area = 69000
## Do not attempt to reconstruct buildings with insufficient pointcloud data. If `--h-roof-attribute` is set, an LoD 1.1 extrusion will be performed, otherwise no 3D model will be generated.
clear-insufficient = true
## Compute and output the 98th percentile of pointcloud height for each building.
compute-pc-98p = false
## Only perform the crop phase, do not perform reconstruction,
crop-only = false
## Output building pointclouds from crop phase as LAS files.
crop-output = false
## Output building pointclouds for each pointcloud. Only relevant when multiple pointclouds are provided.Implies `--crop-output`
crop-output-all = false
## Output rasterised pointcloud analytics from crop phase as GeoTIFF files. Implies `--crop-output`
crop-rasters = false
## Output index.gpkg file with quick pointcloud analystics from crop phase.
index = false
### Reconstruction options
[reconstruction]
## Generate LoD 1.2 geometry.
lod12 = false
## Generate LoD 1.3 geometry.
lod13 = false
## Generate LoD 2.2 geometry.
lod22 = true
## Clip roofprints where patches of terrain points are detected.
clip-terrain = true
## Maximum step height dissolved during LoD 1.3 generalisation, in metres.
lod13-step-height = 3
## Terrain elevation selection strategy.
h-terrain-strategy = "buffer_tile"
[reconstruction.plane-detector]
## Neighbours used to estimate normals.
normal-neighbour-count = 5
## Neighbours used to grow planes.
plane-neighbour-count = 15
## Minimum points in a detected plane.
min-plane-points = 15
## Maximum plane fitting distance, in metres.
plane-epsilon = 0.3
## Maximum angle between normals within a plane, in degrees.
normal-angle-threshold = 41.409622
## Maximum plane angle from horizontal for horizontal planes, in degrees.
horizontal-angle-threshold = 5.731968
## Minimum plane angle from horizontal for wall planes, in degrees.
wall-angle-threshold = 72.5424
## Plane refit interval.
refit-interval = 5
## Maximum plane regularisation angle, in degrees.
maximum-angle = 25
## Maximum plane regularisation offset, in metres.
maximum-offset = 0.5
## Regularise parallel planes.
regularise-parallelism = false
## Regularise orthogonal planes.
regularise-orthogonality = false
## Regularise coplanar planes.
regularise-coplanarity = false
## Regularise plane symmetry.
regularise-axis-symmetry = false
## Maximum detected planes before aborting.
max-plane-count = 900
[reconstruction.alpha-shaper]
## Alpha-shape squared-radius parameter, in square metres.
alpha = 0.25
## Autoselect alpha for 1 connected component.
optimal-alpha = false
## Clamp the optimal alpha to at least the configured alpha value.
clamp-optimal-alpha = true
[reconstruction.line-detector]
## Maximum line fitting distance, in metres.
distance-threshold = 1
## Minimum point-count range.
min-point-count-range = [5, 10]
## Neighbours used for line detection.
neighbour-count = 5
## Line endpoint snapping distance, in metres.
snap-threshold = 1
## Line extension distance, in metres.
extension = 0.05
## Chain connected lines.
perform-chaining = true
## Remove overlapping lines.
remove-overlap = true
[reconstruction.plane-intersector]
## Minimum number of neighbouring plane points.
min-neighbour-points = 5
## Maximum distance from plane points to the intersection line, in metres.
distance-to-line-threshold = 1
## Minimum intersection length, in metres.
min-length = 0
## Intersection horizontality threshold for ridgeline detection, in degrees.
horizontality-threshold = 5
[reconstruction.line-regulariser]
## Line merge distance, in metres.
distance-threshold = 0.8
## Line merge angle threshold, in degrees.
angle-threshold = 8.594367
## Regularised line extension, in metres.
extension = 3
## Merge plane intersection lines.
merge-intersection-lines = false
[reconstruction.segment-rasteriser]
## Raster cell size, in metres.
cell-size = 0.05
## Maximum raster size in megapixels.
megapixel-limit = 600
## Fill nodata cells.
fill-nodata = false
## Nodata filling window size, in raster cells.
fill-nodata-window-size = 5
[reconstruction.arrangement-builder]
## Footprint extension distance, in metres.
footprint-extension = 0
[reconstruction.arrangement-optimiser]
## Balance between data fidelity (1) and smoothness (0).
complexity-factor = 0.888
## Graph-cut backend (experimental). 0 uses Boost adjacency list (default). 1 uses Boost compressed sparse row (slower, uses less memory). 2 uses MaxFlow (faster but may consume a lot more memory).
graph-cut-impl = 0
[reconstruction.arrangement-snapper]
## Vertex snapping distance, in metres.
distance-threshold = 0.021
## Repair non-manifold vertices.
repair-non-manifold-vertices = true
## Non-manifold repair radius, in metres.
manifold-repair-radius = 0.02
## Non-manifold height tolerance, in metres.
manifold-height-tolerance = 1e-04
[reconstruction.arrangement-extruder]
## Generate walls.
generate-walls = true
## Generate roofs.
generate-roofs = true
## Generate floors.
generate-floor = true
## Minimum clearance when lowering fallback underpass ceilings, in metres.
underpass-min-height = 2
## Vertical roof gap when lowering fallback underpass ceilings, in metres.
underpass-roof-margin = 0.03
## Extrude LoD 1 to maximum roof height instead of 70th percentile.
lod1-extrude-to-max = false
## Snap tolerance, in metres.
snap-tolerance = 0.001258925
### Output options
[output]
## Output directory. The building models will be written to this directory. Use - to stream CityJSONSeq to stdout.
# output-directory = ""
## Enable or disable output tiling.
tiling = false
## Tilesize for rectangular output tiles, in metres.
tilesize = [1000,1000]
## Output CityJSONSequence file for each building instead of one file per tile.
split-cjseq = false
## Omit metadata line in CityJSONSequence output.
omit-metadata = false
## EXPERIMENTAL: Write one triangulated TINRelief feature per tile from the highest-quality pointcloud source. Its geometry, attributes, file naming, and configuration may change, and the feature may be removed in a future release.
terrain = false
## CityJSON output vertex precision, in input map units.
cj-scale = [1e-04,1e-04,1e-04]
## Translation applied to CityJSON output vertices, in input coordinate units. Uses dataset center by default.
# cj-translate = [100000, 200000, 0]
## Rename output attributes. If no value is provided, the attribute will not be written. See the list of available attributes with `--attributes`. By default attribute names are prefixed with `rf_`.
[output.attributes]
## The azimuth of a roofpart in degrees
azimuth = "rf_azimuth"
## Indicates what extrusion mode was used for the building. `standard`: the regular LoD 1.2, 1.3 or 2.2 extrusion. `lod11_fallback`: all geometry was substituted with an LoD 1.1 extrusion. `skip`: no 3D geometry was generated
extrusion_mode = "rf_extrusion_mode"
## Indicates if LoD 1.1 extrusion was forced for the building
force_lod11 = "rf_force_lod11"
## The elevation of the floor of the building
h_ground = "rf_h_ground"
## The 98th percentile elevation of the building pointcloud
h_pc_98p = "rf_h_pc_98p"
## The 50th percentile roof elevation
h_roof_50p = "rf_h_roof_50p"
## The 70th percentile roof elevation
h_roof_70p = "rf_h_roof_70p"
## The maximum roof elevation
h_roof_max = "rf_h_roof_max"
## The minimum roof elevation
h_roof_min = "rf_h_roof_min"
## The main ridge elevation
h_roof_ridge = "rf_h_roof_ridge"
## Indicates if the reconstructed building contains at least one underpass
has_underpass = "rf_has_underpass"
## Indicates if a glass roof was detected
is_glass_roof = "rf_is_glass_roof"
## Indicates if the building was mutated between multiple input pointclouds (if multiple input pointclouds were provided)
is_mutated = "rf_is_mutated"
## Indicates fraction (in the range [0,1]) of the roofprint area that is not covered by pointcloud data
nodata_frac = "rf_nodata_frac"
## Indicates the radius of the largest circle in the roofprint that is not covered by pointcloud data, in input map units
nodata_r = "rf_nodata_r"
## Indicates why the input pointcloud was selected for reconstruction. Only relevant if multiple input pointclouds were provided
pc_select = "rf_pc_select"
## Indicates which input pointcloud was used for reconstruction
pc_source = "rf_pc_source"
## Indicates the acquisition year of the selected input pointcloud
pc_year = "rf_pc_year"
## Indicates if the pointcloud was found to be insufficient for reconstruction
pointcloud_unusable = "rf_pointcloud_unusable"
## Indicates the point density inside the roofprint, in points per square input map unit
pt_density = "rf_pt_density"
## Reconstruction time in milliseconds
reconstruction_time = "rf_t_run"
## The Root Mean Square Erorr of the LOD12 geometry, in input map units
rmse_lod12 = "rf_rmse_lod12"
## The Root Mean Square Erorr of the LOD13 geometry, in input map units
rmse_lod13 = "rf_rmse_lod13"
## The Root Mean Square Erorr of the LOD22 geometry, in input map units
rmse_lod22 = "rf_rmse_lod22"
## The number of roofplanes detected in the pointcloud (could be different from the generated mesh model)
roof_n_planes = "rf_roof_planes"
## The number of ridgelines detected in the pointcloud (could be different from the generated mesh model)
roof_n_ridgelines = "rf_ridgelines"
## Roof type. Can be `no points`, `no planes`, `horizontal`, `multiple horizontal`, or `slanted`
roof_type = "rf_roof_type"
## The slope of a roofpart in degrees
slope = "rf_slope"
## Indicates if processing completed without unexpected errors
success = "rf_success"
## Lists val3dity codes for LoD 1.2 geometry
val3dity_lod12 = "rf_val3dity_lod12"
## Lists val3dity codes for LoD 1.3 geometry
val3dity_lod13 = "rf_val3dity_lod13"
## Lists val3dity codes for LoD 2.2 geometry
val3dity_lod22 = "rf_val3dity_lod22"
## The volume of the LoD 1.2 geometry, in cubic input map units
volume_lod12 = "rf_volume_lod12"
## The volume of the LoD 1.3 geometry, in cubic input map units
volume_lod13 = "rf_volume_lod13"
## The volume of the LoD 2.2 geometry, in cubic input map units
volume_lod22 = "rf_volume_lod22"