Skip to content

Commit 9a5d79b

Browse files
committed
re-arrange settings into groups, adding laz 1.2 metadata importer (args: -metadata and -metadataonly), add geotiff enums, #BUILD BETA
1 parent f49fa85 commit 9a5d79b

14 files changed

+2805
-206
lines changed

App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@
130130
<setting name="useJSON" serializeAs="String">
131131
<value>False</value>
132132
</setting>
133+
<setting name="importMetadata" serializeAs="String">
134+
<value>False</value>
135+
</setting>
136+
<setting name="metadataOnly" serializeAs="String">
137+
<value>False</value>
138+
</setting>
133139
</PointCloudConverter.Properties.Settings>
134140
</userSettings>
135141
<runtime>

MainWindow.xaml

Lines changed: 102 additions & 78 deletions
Large diffs are not rendered by default.

MainWindow.xaml.cs

Lines changed: 143 additions & 116 deletions
Large diffs are not rendered by default.

PointCloudConverter.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,13 @@
9999
<Compile Include="Structs\Color.cs" />
100100
<Compile Include="Structs\ExportFormat.cs" />
101101
<Compile Include="Structs\Float3.cs" />
102+
<Compile Include="Structs\Metadata\GeoTiffKeys.cs" />
102103
<Compile Include="Structs\ImportFormat.cs" />
103104
<Compile Include="Structs\ImportSettings.cs" />
105+
<Compile Include="Structs\Metadata\LasHeader.cs" />
106+
<Compile Include="Structs\Metadata\LasVariableLengthRecord.cs" />
104107
<Compile Include="Structs\PointCloudTile.cs" />
108+
<Compile Include="Structs\Metadata\sGeoKeys.cs" />
105109
<Compile Include="Tools\ArgParser.cs" />
106110
<Compile Include="Tools\LogText.cs" />
107111
<Compile Include="Tools\Tools.cs" />

Properties/Settings.Designer.cs

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Properties/Settings.settings

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,11 @@
122122
<Setting Name="useJSON" Type="System.Boolean" Scope="User">
123123
<Value Profile="(Default)">False</Value>
124124
</Setting>
125+
<Setting Name="importMetadata" Type="System.Boolean" Scope="User">
126+
<Value Profile="(Default)">False</Value>
127+
</Setting>
128+
<Setting Name="metadataOnly" Type="System.Boolean" Scope="User">
129+
<Value Profile="(Default)">False</Value>
130+
</Setting>
125131
</Settings>
126132
</SettingsFile>

Readers/IReader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ public interface IReader
1717
// close filestream
1818
void Close();
1919
Color GetIntensity();
20+
LasHeader GetMetaData(ImportSettings importSettings, int fileIndex);
2021
}
2122
}

Readers/LAZ.cs

Lines changed: 328 additions & 0 deletions
Large diffs are not rendered by default.

Structs/ImportSettings.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public class ImportSettings
6868
public bool useCustomIntensityRange { get; set; } = false; // if false, 0-255 range is used, if ture: 0-65535
6969
public int seed { get; set; } = -1; // random seed for shuffling
7070
public bool useJSONLog = false;
71-
//public bool importMetaData = false;
71+
public bool importMetadata = false;
72+
public bool importMetadataOnly = false;
7273

7374
public override string ToString()
7475
{

0 commit comments

Comments
 (0)