| 560 | } |
| 561 | |
| 562 | void LASreaderPLY::add_attribute(I32 attribute_type, const char* name, const char* description, F64 scale, F64 offset, F64 pre_scale, F64 pre_offset, F64 no_data) |
| 563 | { |
| 564 | attributes_data_types[number_attributes] = attribute_type+1; |
| 565 | if (name) |
| 566 | { |
| 567 | attribute_names[number_attributes] = LASCopyString(name); |
| 568 | } |
| 569 | else |
| 570 | { |
| 571 | char temp[32]; |
| 572 | snprintf(temp, sizeof(temp), "attribute %d", number_attributes); |
| 573 | attribute_names[number_attributes] = LASCopyString(temp); |
| 574 | } |
| 575 | if (description) |
| 576 | { |
| 577 | attribute_descriptions[number_attributes] = LASCopyString(description); |
| 578 | } |
| 579 | else |
| 580 | { |
| 581 | attribute_descriptions[number_attributes] = 0; |
| 582 | } |
| 583 | attribute_scales[number_attributes] = scale; |
| 584 | attribute_offsets[number_attributes] = offset; |
| 585 | attribute_pre_scales[number_attributes] = pre_scale; |
| 586 | attribute_pre_offsets[number_attributes] = pre_offset; |
| 587 | attribute_no_datas[number_attributes] = no_data; |
| 588 | number_attributes++; |
| 589 | } |
| 590 | |
| 591 | BOOL LASreaderPLY::seek(const I64 p_index) |
| 592 | { |