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 --terrain is enabled: complete_quads, local_triangles, or fill_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-attribute is 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 with rf_.