Go to the documentation of this file.
46 if (this->file) this->file =
file;
54 fprintf(stderr,
"ERROR: file name pointer is zero\n");
58 file = fopen(file_name,
"wb");
62 fprintf(stderr,
"ERROR: cannot open file '%s'\n", file_name);
66 if (setvbuf(
file,
NULL, _IOFBF, io_buffer_size) != 0)
68 fprintf(stderr,
"WARNING: setvbuf() failed with buffer size %u\n", io_buffer_size);
78 fprintf(stderr,
"ERROR: file pointer is zero\n");
85 if(_setmode( _fileno( stdout ), _O_BINARY ) == -1 )
87 fprintf(stderr,
"ERROR: cannot set stdout to binary (untranslated) mode\n");
111 fprintf(stderr,
"ERROR: ByteStreamOut pointer is zero\n");
118 fprintf(stderr,
"ERROR: LASheader pointer is zero\n");
126 fprintf(stderr,
"ERROR: bounding box (%g %g / %g %g) exceeds longitude / latitude\n", header->
min_x, header->
min_y, header->
max_x, header->
max_y);
169 fprintf(stderr,
"WARNING: version %d of QFIT unknown ... using 48\n",
version);
177 fprintf(stderr,
"ERROR: while writing version of QFIT header\n");
188 fprintf(stderr,
"ERROR: writing first header record of QFIT header\n");
199 fprintf(stderr,
"ERROR: while writing -9000000 into QFIT header\n");
204 fprintf(stderr,
"ERROR: while writing offset into QFIT header\n");
211 sprintf((
char*)
buffer,
"LAStools by Martin Isenburg");
214 fprintf(stderr,
"ERROR: writing second header record of QFIT header\n");
BOOL write_point(const LASpoint *point)
I32 get_extra_attribute_array_offset(const char *name) const
virtual BOOL put32bitsLE(const U8 *bytes)=0
BOOL open(const char *file_name, const LASheader *header, I32 version=48, U32 io_buffer_size=65536)
virtual I64 tell() const =0
I32 pulse_width_array_offset
void get_extra_attribute(I32 index, U8 *data) const
void ENDIAN_SWAP_32(U8 *field)
I64 close(BOOL update_npoints=true)
#define LAS_TOOLS_VERSION
I32 scan_azimuth_array_offset
virtual BOOL putBytes(const U8 *bytes, U32 num_bytes)=0
BOOL update_header(const LASheader *header, BOOL use_inventory=TRUE, BOOL update_extra_bytes=FALSE)
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:24