ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
LasMetadata Namespace Reference

Functions

void SaveMetadataInto (const laszip_header &header, ccPointCloud &pointCloud, const std::vector< LasExtraScalarField > &extraScalarFields)
 
bool LoadVlrs (const ccPointCloud &pointCloud, LasVlr &vlr)
 
bool LoadScaleFrom (const ccPointCloud &pointCloud, CCVector3d &scale)
 
bool LoadOffsetFrom (const ccPointCloud &pointCloud, CCVector3d &offset)
 
bool LoadLasVersionFrom (const ccPointCloud &pointCloud, LasDetails::LasVersion &version)
 
bool LoadGlobalEncoding (const ccPointCloud &pointCloud, uint16_t &outGlobalEncoding)
 
bool LoadProjectUUID (const ccPointCloud &pointCloud, laszip_header &header)
 
static QString ProjectionVLRToString (const laszip_vlr_struct &vlr)
 Converts a vlr to a QByteArray. More...
 

Variables

constexpr const char X_SCALE [] = "LAS.scale.x"
 
constexpr const char Y_SCALE [] = "LAS.scale.y"
 
constexpr const char Z_SCALE [] = "LAS.scale.z"
 
constexpr const char X_OFFSET [] = "LAS.offset.x"
 
constexpr const char Y_OFFSET [] = "LAS.offset.y"
 
constexpr const char Z_OFFSET [] = "LAS.offset.z"
 
constexpr const char VERSION_MAJOR [] = "LAS.version.major"
 
constexpr const char VERSION_MINOR [] = "LAS.version.minor"
 
constexpr const char POINT_FORMAT [] = "LAS.point_format"
 
constexpr const char GLOBAL_ENCODING [] = "LAS.global_encoding"
 
constexpr const char PROJECT_UUID [] = "LAS.project_uuid"
 
constexpr const char SYSTEM_IDENTIFIER [] = "LAS.system_identifier"
 
constexpr const char VLRS [] = "LAS.vlrs"
 
constexpr const char EXTRA_FIELDS [] = "LAS.extra_fields"
 
static constexpr size_t SYSTEM_IDENTIFIER_SIZE = 32
 
static const char ProjectionVLR [] = "LASF_Projection"
 Projection VLR. More...
 

Function Documentation

◆ LoadGlobalEncoding()

bool LasMetadata::LoadGlobalEncoding ( const ccPointCloud &  pointCloud,
uint16_t &  outGlobalEncoding 
)

◆ LoadLasVersionFrom()

bool LasMetadata::LoadLasVersionFrom ( const ccPointCloud &  pointCloud,
LasDetails::LasVersion &  version 
)

◆ LoadOffsetFrom()

bool LasMetadata::LoadOffsetFrom ( const ccPointCloud &  pointCloud,
CCVector3d &  offset 
)

◆ LoadProjectUUID()

bool LasMetadata::LoadProjectUUID ( const ccPointCloud &  pointCloud,
laszip_header &  header 
)

◆ LoadScaleFrom()

bool LasMetadata::LoadScaleFrom ( const ccPointCloud &  pointCloud,
CCVector3d &  scale 
)

◆ LoadVlrs()

bool LasMetadata::LoadVlrs ( const ccPointCloud &  pointCloud,
LasVlr &  vlr 
)

◆ ProjectionVLRToString()

static QString LasMetadata::ProjectionVLRToString ( const laszip_vlr_struct &  vlr)
static

Converts a vlr to a QByteArray.

References ProjectionVLR, and CVLog::Warning().

Referenced by SaveMetadataInto().

◆ SaveMetadataInto()

void LasMetadata::SaveMetadataInto ( const laszip_header &  header,
ccPointCloud &  pointCloud,
const std::vector< LasExtraScalarField > &  extraScalarFields 
)

Variable Documentation

◆ EXTRA_FIELDS

constexpr const char LasMetadata::EXTRA_FIELDS[] = "LAS.extra_fields"
constexpr

◆ GLOBAL_ENCODING

constexpr const char LasMetadata::GLOBAL_ENCODING[] = "LAS.global_encoding"
constexpr

◆ POINT_FORMAT

constexpr const char LasMetadata::POINT_FORMAT[] = "LAS.point_format"
constexpr

◆ PROJECT_UUID

constexpr const char LasMetadata::PROJECT_UUID[] = "LAS.project_uuid"
constexpr

◆ ProjectionVLR

const char LasMetadata::ProjectionVLR[] = "LASF_Projection"
static

Projection VLR.

Referenced by ProjectionVLRToString(), and SaveMetadataInto().

◆ SYSTEM_IDENTIFIER

constexpr const char LasMetadata::SYSTEM_IDENTIFIER[] = "LAS.system_identifier"
constexpr

Referenced by SaveMetadataInto().

◆ SYSTEM_IDENTIFIER_SIZE

constexpr size_t LasMetadata::SYSTEM_IDENTIFIER_SIZE = 32
staticconstexpr

Referenced by SaveMetadataInto().

◆ VERSION_MAJOR

constexpr const char LasMetadata::VERSION_MAJOR[] = "LAS.version.major"
constexpr

◆ VERSION_MINOR

constexpr const char LasMetadata::VERSION_MINOR[] = "LAS.version.minor"
constexpr

◆ VLRS

constexpr const char LasMetadata::VLRS[] = "LAS.vlrs"
constexpr

Referenced by LoadVlrs(), and SaveMetadataInto().

◆ X_OFFSET

constexpr const char LasMetadata::X_OFFSET[] = "LAS.offset.x"
constexpr

Referenced by LoadOffsetFrom(), and SaveMetadataInto().

◆ X_SCALE

constexpr const char LasMetadata::X_SCALE[] = "LAS.scale.x"
constexpr

Referenced by LoadScaleFrom(), and SaveMetadataInto().

◆ Y_OFFSET

constexpr const char LasMetadata::Y_OFFSET[] = "LAS.offset.y"
constexpr

Referenced by LoadOffsetFrom(), and SaveMetadataInto().

◆ Y_SCALE

constexpr const char LasMetadata::Y_SCALE[] = "LAS.scale.y"
constexpr

Referenced by LoadScaleFrom(), and SaveMetadataInto().

◆ Z_OFFSET

constexpr const char LasMetadata::Z_OFFSET[] = "LAS.offset.z"
constexpr

Referenced by LoadOffsetFrom(), and SaveMetadataInto().

◆ Z_SCALE

constexpr const char LasMetadata::Z_SCALE[] = "LAS.scale.z"
constexpr

Referenced by LoadScaleFrom(), and SaveMetadataInto().