forked from shintadono/laszip.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
laszip_header.cs
87 lines (80 loc) · 2.73 KB
/
laszip_header.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//===============================================================================
//
// FILE: laszip_header.cs
//
// CONTENTS:
//
// C# port of a simple DLL interface to LASzip.
//
// PROGRAMMERS:
//
// [email protected] - http://rapidlasso.com
//
// COPYRIGHT:
//
// (c) 2005-2012, martin isenburg, rapidlasso - tools to catch reality
// (c) of the C# port 2014-2017 by Shinta <[email protected]>
//
// This is free software; you can redistribute and/or modify it under the
// terms of the GNU Lesser General Licence as published by the Free Software
// Foundation. See the COPYING file for more information.
//
// This software is distributed WITHOUT ANY WARRANTY and without even the
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// CHANGE HISTORY: omitted for easier Copy&Paste (pls see the original)
//
//===============================================================================
using System.Collections.Generic;
namespace laszip.net
{
public class laszip_header
{
public ushort file_source_ID;
public ushort global_encoding;
public uint project_ID_GUID_data_1;
public ushort project_ID_GUID_data_2;
public ushort project_ID_GUID_data_3;
public readonly byte[] project_ID_GUID_data_4=new byte[8];
public byte version_major;
public byte version_minor;
public readonly byte[] system_identifier=new byte[32];
public readonly byte[] generating_software=new byte[32];
public ushort file_creation_day;
public ushort file_creation_year;
public ushort header_size;
public uint offset_to_point_data;
public uint number_of_variable_length_records;
public byte point_data_format;
public ushort point_data_record_length;
public uint number_of_point_records;
public readonly uint[] number_of_points_by_return=new uint[5];
public double x_scale_factor;
public double y_scale_factor;
public double z_scale_factor;
public double x_offset;
public double y_offset;
public double z_offset;
public double max_x;
public double min_x;
public double max_y;
public double min_y;
public double max_z;
public double min_z;
// LAS 1.3 and higher only
public ulong start_of_waveform_data_packet_record;
// LAS 1.4 and higher only
public ulong start_of_first_extended_variable_length_record;
public uint number_of_extended_variable_length_records;
public ulong extended_number_of_point_records;
public readonly ulong[] extended_number_of_points_by_return=new ulong[15];
// optional
public uint user_data_in_header_size;
public byte[] user_data_in_header;
// optional VLRs
public List<laszip_vlr> vlrs=new List<laszip_vlr>();
// optional
public uint user_data_after_header_size;
public byte[] user_data_after_header;
}
}