Tuesday 20 September 2016

Do any open-source .Net libraries (commercially usable) exist for reading/writing LiDAR data?


I have a few LiDAR point data (.las files) with me. I would like to read the X,Y and Z from it using .Net. I found liblas, which is in C++ and I am not sure if it can be used commercially after reading the licensing information. Has anyone found any good ones?



Answer



libLAS can indeed be used commercially. So can Martin Isenburg's LASlib, which is LGPL, and speaking as the author of libLAS, faster and more completely supported than libLAS. Both are indeed C++ libraries, however, and there isn't too much in the ASPRS LAS space for native .NET.


I'm also the primary author of PDAL, and PDAL can also read ASPRS LAS data, but again, this is C++, not .NET. PDAL is my current project now, and I actively support it in contrast to libLAS, which is in more of a maintenance mode. PDAL's license is also BSD like libLAS', and commercial licensing is not an issue. PDAL can be thought of exactly as its raster data cousin, GDAL, and unlike PCL, it focuses on data format translation and access rather than point cloud exploitation activities. These libraries can be definitely used together, but they are compliments of each other rather than competing visions of LiDAR/point cloud data processing.



Another option you might consider is using https://github.com/grantbrown/laspy which is a pure-python implementation of ASPRS LAS support. You could use this with the .NET port of IronPython and NumPy to get native LAS support on the CLR, though again, it would not be C# per se.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...