Pointclouds
To convert pointclouds to 3dtiles format you can use this tool. It supports converting from las/laz, xyz, ply and wkb formats. This guide focuses primarily on the conversion from las/laz formats.
To install the tool execute the following commands to clone the project and install it with support for laz files. There are additional system dependencies that might have to be installed, which can be found here.
$ git clone https://gitlab.com/Oslandia/py3dtiles.git
$ cd py3dtiles
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -e .
$ pip install laspy[laszip]
To convert las/laz files to 3dtiles you can then use the following command with the python environment activated:
$ py3dtiles convert input1.laz input2.laz --out output_dir
You can optionally convert the CRS of the input to another one. Note that for the DTLab architecture a single unified CRS is needed for all files, so make sure to convert the input to EPSG:4326 if it is in another using the options --srs-in SRS_IN --srs_out 4326
, specifying the input SRS of the las/laz files.