####Tools to voxelize lidar data.
#####Modules:
- JLas :
- JRaster
- JRiegl
This is a (las, laz) point reader
@see: [http://www.asprs.org/Committee-General/LASer-LAS-File-Format-Exchange-Activities.html](http://www.asprs.org/Committee-General/LASer-LAS-File-Format-Exchange-Activities.html)
Ascii grid file format reader, can retrieve height from x,y position
Riegl proprietary format reader, read rxp file, use this to get Riegl Terrestrial LIDAR shots and echos + reflectance
In pom file add repository server:
<repositories>
<repository>
<id>github</id>
<url>https://rawgit.com/MilWolf/AMAPVox/mvn-repo</url>
</repository>
</repositories>
and add module dependency (example for JLas module):
<dependencies>
<dependency>
<groupId>fr.amap.amapvox</groupId>
<artifactId>JLas</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
and that's it !
Below an example to read a laz file:
try {
extractor.openLazFile(new File("C:\\Users\\MilWolf\\Downloads\\file.laz"));
LasHeader header = extractor.getHeader();
System.out.println("Points number : " + header.getNumberOfPointrecords());
Iterator<LasPoint> iterator = extractor.iterator();
while(iterator.hasNext()){
LasPoint point = iterator.next();
System.out.println(point.x + " "+point.y+" "+point.z);
}
}catch (Exception ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}finally{
extractor.close();
}