| 359 | } |
| 360 | |
| 361 | BOOL LASwritePoint::chunk() |
| 362 | { |
| 363 | if (chunk_start_position == 0 || chunk_size != U32_MAX) |
| 364 | { |
| 365 | return FALSE; |
| 366 | } |
| 367 | if (layered_las14_compression) |
| 368 | { |
| 369 | U32 i; |
| 370 | // write how many points are in the chunk |
| 371 | outstream->put32bitsLE((U8*)&chunk_count); |
| 372 | // write all layers |
| 373 | for (i = 0; i < num_writers; i++) |
| 374 | { |
| 375 | ((LASwriteItemCompressed*)writers[i])->chunk_sizes(); |
| 376 | } |
| 377 | for (i = 0; i < num_writers; i++) |
| 378 | { |
| 379 | ((LASwriteItemCompressed*)writers[i])->chunk_bytes(); |
| 380 | } |
| 381 | } |
| 382 | else |
| 383 | { |
| 384 | enc->done(); |
| 385 | } |
| 386 | add_chunk_to_table(); |
| 387 | init(outstream); |
| 388 | chunk_count = 0; |
| 389 | return TRUE; |
| 390 | } |
| 391 | |
| 392 | BOOL LASwritePoint::done() |
| 393 | { |
nothing calls this directly
no test coverage detected