28.1.1. 3D Tiles

28.1.1.1. Convert B3DM to GLTF

Converts files from the legacy .B3DM format to .GLTF or .GLB.

Parameters

Label

Name

Type

Description

Input B3DM

INPUT

[3D Tile]

Input file to convert.

Output file

OUTPUT

[3D Tile]

Default: [Save to temporary file]

Specify the output 3D tile file. One of:

  • Save to a Temporary File

  • Save to File…

Outputs

Label

Name

Type

Description

Output file

OUTPUT

[3D Tile]

Output layer in .GLTF format.

Python code

Algorithm ID: native:b3dmtogltf

import processing
processing.run("algorithm_id", {parameter_dictionary})

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.

28.1.1.2. Convert GLTF to vector features

Converts .GLTF or .GLB file contents to standard vector layer formats.

Parameters

Label

Name

Type

Description

Input GLTF

INPUT

[3D Tile]

Input file to convert.

Output polygons

Optional

OUTPUT_POLYGONS

[vector: polygon]

Default: [Create temporary layer]

Specify the output vector layer to store polygon features. One of:

  • Skip Output

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • Save to File…

  • Save to Geopackage…

  • Save to Database Table…

The file encoding can also be changed here.

Output lines

Optional

OUTPUT_LINES

[vector: line]

Default: [Create temporary layer]

Specify the output vector layer to store line features. One of:

  • Skip Output

  • Create Temporary Layer (TEMPORARY_OUTPUT)

  • Save to File…

  • Save to Geopackage…

  • Save to Database Table…

The file encoding can also be changed here.

Outputs

Label

Name

Type

Description

Output polygons

OUTPUT_POLYGONS

[vector: polygon]

A vector layer storing the polygon features in input layer.

Output lines

OUTPUT_LINES

[vector: line]

A vector layer storing the line features in input layer.

Python code

Algorithm ID: native:gltftovector

import processing
processing.run("algorithm_id", {parameter_dictionary})

The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.