py3dtiles.convert module
- py3dtiles.convert.convert(files: List[str | Path] | str | Path, outfolder: str | Path = './3dtiles', overwrite: bool = False, jobs: int = 8, cache_size: int = 3210, crs_out: CRS | None = None, crs_in: CRS | None = None, force_crs_in: bool = False, benchmark: str | None = None, rgb: bool = True, classification: bool = True, intensity: bool = True, color_scale: float | None = None, verbose: int = False) None [source]
Convert the input dataset into 3dtiles. For the argument list and their effects, please see
Converter
.- Parameters:
files – Filenames to process. The file must use the .las, .laz, .xyz or .ply format.
outfolder – The folder where the resulting tileset will be written.
overwrite – Overwrite the ouput folder if it already exists.
jobs – The number of parallel jobs to start. Default to the number of cpu.
cache_size – Cache size in MB. Default to available memory / 10.
crs_out – CRS to convert the output with
crs_in – Set a default input CRS
force_crs_in – Force every input CRS to be crs_in, even if not null
benchmark – Print summary at the end of the process
rgb – Export rgb attributes.
classification – Export classification attribute.
intensity – Export intensity attributes. This support is currently limited to unsigned 8 bits integer for ply files, and to integers for xyz files.
color_scale – Scale the color with the specified amount. Useful to lighten or darken black pointclouds with only intensity.
- Raises:
SrsInMissingException – if py3dtiles couldn’t find srs informations in input files and srs_in is not specified
SrsInMixinException – if the input files have different CRS