# Color by class

In this tileset, the color of each surface of the 3D Tiles models is based on the [CityGML class](https://3dcitydb-docs.readthedocs.io/en/release-v4.2.3/3dcitydb/schema/module/building.html) of the surface. CityGML classes of all surfaces are stored in the Batch Table.

## How to create the tileset

The tileset was created with [Py3DTilers](https://github.com/VCityTeam/py3dtilers), an open source toolkit to create 3D Tiles out of various geometrical formats (OBJ, GeoJSON, IFC or CityGML), using the [CityTiler](https://github.com/VCityTeam/py3dtilers/tree/master/py3dtilers/CityTiler).

CityGML models are from open data and can be found online: [Lyon 1 CityGML (year 2018)](https://data.grandlyon.com/jeux-de-donnees/maquettes-3d-texturees-2018-communes-metropole-lyon/donnees) of Data Grand Lyon.

To install and use Py3DTilers, see online documentation: [installation](https://github.com/VCityTeam/py3dtilers?tab=readme-ov-file#installation-from-sources) & [usage](https://github.com/VCityTeam/py3dtilers?tab=readme-ov-file#usage).

The command used to created the tileset is:

```bash
citygml-tiler -i py3dtilers/CityTiler/CityTilerDBConfig.yml --type building --add_color --split_surfaces -o Lyon-1_2018_CityGML_Colors
```
