MCPcopy Create free account
hub / github.com/LAStools/LAStools / add_attribute

Method add_attribute

LASlib/src/lasreader.cpp:3183–3198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3181}
3182
3183void LASreadOpener::add_attribute(
3184 I32 data_type, const CHAR* name, const CHAR* description, F64 scale, F64 offset, F64 pre_scale, F64 pre_offset, F64 no_data) {
3185 if ((data_type < 1) || (data_type > 10)) {
3186 LASMessage(LAS_WARNING, "attribute data type %d not supported. ignoring attribute '%s'.", data_type, name);
3187 return;
3188 }
3189 attribute_data_types[number_attributes] = data_type;
3190 attribute_names[number_attributes] = (name ? LASCopyString(name) : 0);
3191 attribute_descriptions[number_attributes] = (description ? LASCopyString(description) : 0);
3192 attribute_scales[number_attributes] = scale;
3193 attribute_offsets[number_attributes] = offset;
3194 attribute_pre_scales[number_attributes] = pre_scale;
3195 attribute_pre_offsets[number_attributes] = pre_offset;
3196 attribute_no_datas[number_attributes] = no_data;
3197 number_attributes++;
3198}
3199
3200void LASreadOpener::set_skip_lines(const U32 number_of_lines) {
3201 this->skip_lines = number_of_lines;

Callers 10

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
openMethod · 0.45
openMethod · 0.45
openMethod · 0.45

Calls 1

LASMessageFunction · 0.85

Tested by

no test coverage detected