| 3181 | } |
| 3182 | |
| 3183 | void 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 | |
| 3200 | void LASreadOpener::set_skip_lines(const U32 number_of_lines) { |
| 3201 | this->skip_lines = number_of_lines; |
no test coverage detected