iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.07k stars 290 forks source link

fix(points): support point classification up to 256 classes #2331

Closed Desplandis closed 1 month ago

Desplandis commented 1 month ago

Description

This PR fixes our points material to conform to LAS 1.4 specification.

As of LAS 1.4 Point Data Record Format > 6 supports up to 256 different classes. The spec says that:

Point Data Record Format 6 contains the core 30 bytes that are shared by Point Data Record Formats 6 to 10. The difference to the core 20 bytes of Point Data Record Formats 0 to 5 is that [...] there are more bits for point classifications to support up to 256 classes, [...]

Capture d’écran du 2024-06-04 15-58-00