| 271 | } |
| 272 | |
| 273 | I64 LASwriterQFIT::close(BOOL update_header) |
| 274 | { |
| 275 | I64 bytes = 0; |
| 276 | |
| 277 | if (stream) |
| 278 | { |
| 279 | bytes = stream->tell(); |
| 280 | delete stream; |
| 281 | stream = 0; |
| 282 | } |
| 283 | |
| 284 | if (file) |
| 285 | { |
| 286 | fclose(file); |
| 287 | file = 0; |
| 288 | } |
| 289 | |
| 290 | npoints = p_count; |
| 291 | p_count = 0; |
| 292 | |
| 293 | return bytes; |
| 294 | } |
| 295 | |
| 296 | LASwriterQFIT::LASwriterQFIT() |
| 297 | { |