Skip to content

MilWolf/AMAPVox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

AMAPVox

####Tools to voxelize lidar data.

#####Modules:

#####Use a module in maven project :

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();
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published