Hi everyone,

Attached to this email, you will find a working version a osgPlugin
which reads LAS files: The LAS file format is commonly used to store
3D point clouds [1].


This contribution is a straightforward wrapper of the libLas library
[2]. Although precompiled versions could be used, I compiled libLas by
myself from the GIT repo [3].



In order to compile the plugin, BOOST is required (it is used by
libLas, not the pluging itself). Some quick notes about this:

- BOOST and the libraries can be found in the full 3rd party package [4]

- It happens that COLLADA_INCLUDE_DIR points to the right place, so I
used this in the CMakeLists.txt. But I guess, a new and independent
CMake var should be added to define the BOOST include directory.
- The BOOST_THREAD_LIBRARY and BOOST_THREAD_LIBRARY_DEBUG libraries
have to be defined using CMake (add entry).



About the implementation: The plugin is a mix between the 3dc osg
plugin (it deals with points too) and the libLas read example. As the
3dc plugin, the points are arranged in 10000 batches.

The LAS plugin has a "v" option to show the LAS header of the input
files. Of course, it can be modified to use any other common OSG
logging standards (osg::NOTIFY).

The provided CMakeLists.txt have trivial modifications.
- ${OSGROOT}/CMakeLists.txt >> *FIND_PACKAGE (libLas) *
- ${OSGROOT}/src/osgPlugins/CMakeLists.txt >> *ADD_SUBDIRECTORY (las)*

About the compatibility, it works in OSG 3.2.0 and the Trunk version.
Sample LAS files can be found in [3].


Best regards,


[1]: LAS LIDAR FORMAT:
http://www.asprs.org/Committee-General/LASer-LAS-File-Format-Exchange-Activities.html
[2]: LibLas library:  http://www.liblas.org/
[3]: LibLas GIT repo: https://github.com/libLAS/libLAS
[4]: OSG precompiled 3rd party:
http://www.openscenegraph.org/index.php/download-section/dependencies

-- 
Aitor Moreno
   aitormoreno [@] gmail.com

Attachment: las_osgPlugin.20140617.7z
Description: application/7z-compressed

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to