47 fprintf(stderr,
"ERROR: fine name pointer is zero\n");
53 file = fopen(file_name,
"rb");
56 fprintf(stderr,
"ERROR: cannot open file '%s'\n", file_name);
79 geo_keys[0].
count = 1;
85 geo_keys[1].
count = 1;
91 geo_keys[2].
count = 1;
97 geo_keys[3].
count = 1;
105 WIN32_FILE_ATTRIBUTE_DATA attr;
107 GetFileAttributesEx(file_name, GetFileExInfoStandard, &attr);
108 FileTimeToSystemTime(&attr.ftCreationTime, &creation);
109 int startday[13] = {-1, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334};
128 fprintf(stderr,
"ERROR: ByteStreamIn* pointer is zero\n");
138 fprintf(stderr,
"ERROR: reading QFIT header\n");
152 if (version == 40 || version == 48 || version == 56)
159 fprintf(stderr,
"ERROR: corrupt QFIT header.\n");
168 fprintf(stderr,
"ERROR: reading %d bytes until point start offset from QFIT header\n",
version);
176 fprintf(stderr,
"ERROR: reading point start offset from QFIT header\n");
191 for (i = 0; i < 32; i++)
384 fprintf(stderr,
"ERROR: fine name pointer is zero\n");
390 file = fopen(file_name,
"rb");
393 fprintf(stderr,
"ERROR: cannot open file '%s'\n", file_name);
457 this->
offset[0] = x_offset;
458 this->
offset[1] = y_offset;
459 this->
offset[2] = z_offset;
481 LASreaderQFITrescalereoffset::LASreaderQFITrescalereoffset(
F64 x_scale_factor,
F64 y_scale_factor,
F64 z_scale_factor,
F64 x_offset,
F64 y_offset,
F64 z_offset) :
LASreaderQFITrescale(x_scale_factor, y_scale_factor, z_scale_factor),
LASreaderQFITreoffset(x_offset, y_offset, z_offset)
virtual I64 tell() const =0
void close(BOOL close_stream=TRUE)
BOOL open(ByteStreamIn *stream)
void ENDIAN_SWAP_32(U8 *field)
#define LAS_ATTRIBUTE_I32
virtual void get32bitsBE(U8 *bytes)=0
I16 get_total_extra_attributes_size() const
void set_min(U8 *min, I32 dim=0)
const LASattributer * attributer
virtual BOOL seek(const I64 position)=0
BOOL init(const LASquantizer *quantizer, const U8 point_type, const U16 point_size, const LASattributer *attributer=0)
I32 pulse_width_array_offset
BOOL read_point_default()
ByteStreamIn * get_stream() const
void set_extra_attribute(I32 index, const U8 *data)
virtual void getBytes(U8 *bytes, const U32 num_bytes)=0
I32 scan_azimuth_array_offset
void compute_coordinates()
BOOL set_scale(F64 scale, I32 dim=0)
virtual BOOL open(ByteStreamIn *stream)
LASreaderQFITrescale(F64 x_scale_factor, F64 y_scale_factor, F64 z_scale_factor)
void set_max(U8 *max, I32 dim=0)
BOOL seek(const I64 p_index)
virtual void get32bitsLE(U8 *bytes)=0
I32 add_extra_attribute(const LASattribute extra_attribute)
#define LAS_TOOLS_VERSION
LASreaderQFITrescalereoffset(F64 x_scale_factor, F64 y_scale_factor, F64 z_scale_factor, F64 x_offset, F64 y_offset, F64 z_offset)
BOOL open(const char *file_name)
I32 get_extra_attribute_array_offset(const char *name) const
virtual BOOL seekEnd(const I64 distance=0)=0
LASreaderQFITreoffset(F64 x_offset, F64 y_offset, F64 z_offset)
virtual BOOL open(ByteStreamIn *stream)
BOOL reopen(const char *file_name)