Download the latest version of liblas source code
Download address: https://liblas.org/download.html
Necessary conditions:
CMake 2.8.1+ and C/C++ compilers
Three. Compile
1. First of all, you must have installed Boost libraries with versions 1.38.0 and above. Not installed can refer to my blog: ubuntu: install boost library v1.70
2. Then execute the following commands:
cd liblas mkdir makefiles cd makefiles cmake -G "Unix Makefiles" ../
After that:
make
Then, then:
make install
Four, test
Enter the following commands:
lasinfo ../test/data/TO_core_last_clip.las
Similar information will be output as follows:
--------------------------------------------------------- Header Summary --------------------------------------------------------- File Name: ../test/data/TO_core_last_clip.las Version: 1.0 Source ID: 0 Reserved: 0 Project ID/GUID: '00000000-0000-0000-0000-000000000000' System Identifier: '' Generating Software: 'TerraScan' File Creation Day/Year: 0/0 Header Size 227 Offset to Point Data 229 Number Var. Length Records 0 Point Data Format 1 Point Data Record Length 28 Number of Point Records 213093 Number of Points by Return 128621 84472 0 0 0 Scale Factor X Y Z 0.01 0.01 0.01 Offset X Y Z -0.000000 -0.000000 -0.000000 Min X Y Z 630250.000000 4834500.000000 46.830000 Max X Y Z 630500.000000 4834750.000000 170.650000 Spatial Reference Geotiff_Information: Version: 1 Key_Revision: 1.0 Tagged_Information: End_Of_Tags. Keyed_Information: End_Of_Keys. End_Of_Geotiff. --------------------------------------------------------- Point Inspection Summary --------------------------------------------------------- Header Point Count: 213093 Actual Point Count: 213093 Minimum and Maximum Attributes (min,max) --------------------------------------------------------- Min X,Y,Z: 630250.000000,4834500.000000,46.830000 Max X,Y,Z: 630500.000000,4834750.000000,170.650000 Bounding Box: 630250.00,4834500.00,630500.00,4834750.00 Time: 413162.560400,414095.322000 Return Number: 1,2 Return Count: 1,2 Flightline Edge: 0,0 Intensity: 10,50200 Scan Direction Flag: 0,0 Scan Angle Rank: 0,0 Classification: 1,1 Point Source Id: 0,0 Minimum Color: 0 0 0 Maximum Color: 0 0 0 Number of Points by Return --------------------------------------------------------- (0) 128621 (1) 84472 (2) 0 (3) 0 (4) 0 Total Points: 213093 Number of Returns by Pulse --------------------------------------------------------- (1) 128621 (2) 84472 (3) 0 (4) 0 (5) 0 (6) 0 (7) 0 Total Pulses: 213093 Point Classifications --------------------------------------------------------- 213093 Unclassified (1)
Be accomplished! I think it's a good compliment.