py3dtiles.merger module#

py3dtiles.merger.create_tileset_from_root_tiles(root_tiles: list[Tile]) TileSet[source]#

Creates a TileSet from all the root tiles. This method will calculate a reasonable world-transformation and reverse-apply it to each tile transformation before adding them to the tileset.

NOTE: each element of root_tiles must have its content loaded if their content uri is defined before calling this method.

The resulting TileSet might have a root tile with contents. It’s the responsibility of the caller to save this content on disk (see py3dtiles.tileset.tile.Tile.write_content).

py3dtiles.merger.merge(tilesets: list[TileSet], tileset_paths: dict[TileSet, Path] | None = None) TileSet[source]#

Create a tileset that include all input tilesets. The tilesets don’t need to be written. The output tileset is not written but return as a TileSet instance. Please note that the TileSet might have a content in its root tile, not written to disk by this method either.

py3dtiles.merger.merge_from_files(tileset_paths: list[Path], output_tileset_path: Path, overwrite: bool = True) None[source]#