Main MRPT website > C++ reference for MRPT 1.5.7
Classes | Functions
libLAS interface for CPointsMap (in #include <mrpt/maps/CPointsMaps_liblas.h>)

Detailed Description

Collaboration diagram for libLAS interface for CPointsMap (in #include <mrpt/maps/CPointsMaps_liblas.h>):

Classes

struct  mrpt::maps::LAS_WriteParams
 Optional settings for saveLASFile() More...
 
struct  mrpt::maps::LAS_LoadParams
 Optional settings for loadLASFile() More...
 
struct  mrpt::maps::LAS_HeaderInfo
 Extra information gathered from the LAS file header. More...
 

Functions

template<class POINTSMAP >
bool mrpt::maps::saveLASFile (const POINTSMAP &ptmap, const std::string &filename, const LAS_WriteParams &params=LAS_WriteParams())
 Save the point cloud as an ASPRS LAS binary file (requires MRPT built against liblas). More...
 
template<class POINTSMAP >
bool mrpt::maps::loadLASFile (POINTSMAP &ptmap, const std::string &filename, LAS_HeaderInfo &out_headerInfo, const LAS_LoadParams &params=LAS_LoadParams())
 Load the point cloud from an ASPRS LAS binary file (requires MRPT built against liblas). More...
 

Function Documentation

◆ loadLASFile()

template<class POINTSMAP >
bool mrpt::maps::loadLASFile ( POINTSMAP &  ptmap,
const std::string filename,
LAS_HeaderInfo out_headerInfo,
const LAS_LoadParams params = LAS_LoadParams() 
)

Load the point cloud from an ASPRS LAS binary file (requires MRPT built against liblas).

Refer to http://www.liblas.org/

Note
Color (RGB) information will be taken into account if using the derived class mrpt::maps::CColouredPointsMap
Returns
false on any error

Definition at line 121 of file CPointsMap_liblas.h.

References mrpt::maps::LAS_HeaderInfo::creation_DOY, mrpt::maps::LAS_HeaderInfo::creation_year, mrpt::maps::LAS_HeaderInfo::FileSignature, mrpt::obs::gnss::header, mrpt::maps::LAS_HeaderInfo::project_guid, mrpt::maps::LAS_HeaderInfo::SoftwareIdentifier, mrpt::maps::LAS_HeaderInfo::spatial_reference_proj4, and mrpt::maps::LAS_HeaderInfo::SystemIdentifier.

◆ saveLASFile()

template<class POINTSMAP >
bool mrpt::maps::saveLASFile ( const POINTSMAP &  ptmap,
const std::string filename,
const LAS_WriteParams params = LAS_WriteParams() 
)

Save the point cloud as an ASPRS LAS binary file (requires MRPT built against liblas).

Refer to http://www.liblas.org/

Returns
false on any error

Definition at line 61 of file CPointsMap_liblas.h.

References mrpt::obs::gnss::header, and R.




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019