Coder Social home page Coder Social logo

wulaslib's Introduction

An adapter IO for Las File Reader and Writer

Introduction

An implement based on C++ and LAStools read and write las file. In this way, if LAStools changes a lot, you do not need to change you kernel code.

Running environment

Dependency

For the Las IO, there is no dependency, for the Las projection converter, it depends on GDAL.

MakeLists for Ubuntu 16.04

#! /bin/bash

mkdir build
cd build
cmake ..
make

version change log:

v1.0 based on lastool(v2008)

This version only imports read and write uncompress las file.

v2.0 based on lastool(v2021)

This version only imports read compress/uncompress las file and write uncompress las file.

Read the "extended number of point records" for the LAS1.4 file.

Example

There are two example in the example folder:

  • LasFileExample is an example to crop the las file. After compiling the code, there is a test example in the data folder:
#! /bin/bash

./LasFileExample "../data/Vaihingen_Strip_10-sub.LAS" "../data/Vaihingen_Strip_10-cut.LAS" 497020 5420320 497040 5420420
epsg
Download proj4 file

There is a testing example in the data folder:

#! /bin/bash

./LasFileConvert "../data/3943_CC43.las" "../data/3943_CC43.proj4" "../data/2154_Lambert93.proj4" "../data/3943_CC43_convert.las" 

After converting, the the result has the same coordinate reference with 2154_Lambert93.las, then you can visualize them in CloudCompare:

convert
Visulization in CloudCompare

In the figure, the red points(3943_CC43_convert.las) are converted data, this data is from AI4GEO project. And the white points(2154_Lambert93.las) are from UMBRA data.

Other information

It is useful to use LAStools to analyze the LAS file, for example :

#! /bin/bash
lasinfo -i file.las

MAINTENANCE

If you think you have any problem, contact [Teng Wu][email protected]

wulaslib's People

Contributors

whuwuteng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.