LAS (LASer) is a file format designed for the interchange of 3-dimensional point cloud data, primarily from LiDAR (Light Detection and Ranging) systems. It is an open, binary format that stores point cloud data efficiently.
- Versions: LAS 1.0 through 1.4, with 1.4 being the latest and most feature-rich.
- Structure:
- Header: Contains metadata about the file, including version, point data format, coordinate system, and bounds.
- Variable Length Records (VLRs): Optional records for extended information like coordinate system details.
- Point Data Records: The core data, each containing position (X, Y, Z), intensity, return information, classification, and more.
- Common Attributes:
- Position: X, Y, Z coordinates (scaled and offset).
- Intensity: Strength of the laser return.
- Return Number: Which return this point represents (useful for vegetation analysis).
- Classification: Point type (ground, vegetation, building, etc.).
- GPS Time: Timestamp for each point.
- RGB: Color values for photogrammetric data.
- Compression: LAZ is the compressed version of LAS, reducing file size significantly while maintaining full compatibility.
In this project, LAS/LAZ files are the primary input format for point cloud processing and visualization.
https://github.com/potree/potree.git
cd potree
npm install
git clone https://github.com/potree/PotreeConverter.git
cd PotreeConverter
sudo apt install cmake gdal-bin libboost-all-dev
mkdir build
cd build
cmake ..
make
sudo make install
sudo apt update
sudo apt install -y \
cmake \
g++ \
make \
libboost-all-dev \
libgdal-dev \
libtbb-dev \
libeigen3-dev
rm -rf build
mkdir build
cd build
cmake ..
make -j$(nproc)
find . -name "PotreeConverter"
./PotreeConverter \
/mnt/c/Users/ASUS/Documents/PointCloud/data/Philadelphia_100.las \
-o /mnt/c/Users/ASUS/Documents/PointCloud/potree/pointclouds/output
python3 -m http.server 1234
lsof -i :1234
kill PID
python3 -m http.server 1234