| 463 | } |
| 464 | |
| 465 | BOOL LASreaderBuffered::read_point_default() |
| 466 | { |
| 467 | while (true) |
| 468 | { |
| 469 | if (lasreader->read_point()) |
| 470 | { |
| 471 | point = lasreader->point; |
| 472 | p_idx++; |
| 473 | p_cnt++; |
| 474 | return TRUE; |
| 475 | } |
| 476 | else if (point_count < buffered_points) |
| 477 | { |
| 478 | copy_point_from_buffer(); |
| 479 | p_idx++; |
| 480 | p_cnt++; |
| 481 | return TRUE; |
| 482 | } |
| 483 | lasreader->close(); |
| 484 | point.zero(); |
| 485 | return FALSE; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | void LASreaderBuffered::close(BOOL close_stream) |
| 490 | { |