From d0778207f0ca4a8a8781c9c60020d36175eba724 Mon Sep 17 00:00:00 2001 From: Bert Temme Date: Wed, 25 Oct 2023 15:27:47 +0200 Subject: [PATCH] type of outlines, better console output lods --- src/pg2b3dm/Options.cs | 2 +- src/pg2b3dm/Program.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pg2b3dm/Options.cs b/src/pg2b3dm/Options.cs index 7d501624..d652c0b6 100644 --- a/src/pg2b3dm/Options.cs +++ b/src/pg2b3dm/Options.cs @@ -60,7 +60,7 @@ public class Options public string BoundingVolumeHeights { get; set; } [Option("add_outlines", Required = false, Default = false, HelpText = "Add outlines (Cesium)", SetName = "Cesium")] - public bool AddOutlines { get; set; } + public bool? AddOutlines { get; set; } // mapbox specific options [Option("min_zoom", Required = false, Default = 15, HelpText = "Minimum zoom level (Mapbox)", SetName = "Mapbox")] diff --git a/src/pg2b3dm/Program.cs b/src/pg2b3dm/Program.cs index af44004a..e1491567 100644 --- a/src/pg2b3dm/Program.cs +++ b/src/pg2b3dm/Program.cs @@ -144,7 +144,7 @@ static void Main(string[] args) if (lods.Count >= geometricErrors.Length) { Console.WriteLine($"Calculating geometric errors starting from {geometricErrors[0]}"); geometricErrors = GeometricErrorCalculator.GetGeometricErrors(geometricErrors[0], lods); - Console.WriteLine($"Calculated geometric errors (for {lods.Count} levels): {geometricErrors}"); + Console.WriteLine($"Calculated geometric errors (for {lods.Count} levels): {String.Join(',',geometricErrors)}"); } }; @@ -204,7 +204,7 @@ static void Main(string[] args) } else { var refine = lodcolumn != String.Empty ? "REPLACE" : "ADD"; - var json = TreeSerializer.ToJson(tiles, translation, rootBoundingVolumeRegion, geometricErrors, heights.min, heights.max, version); + var json = TreeSerializer.ToJson(tiles, translation, rootBoundingVolumeRegion, geometricErrors, heights.min, heights.max, version, refine); File.WriteAllText($"{o.Output}{Path.AltDirectorySeparatorChar}tileset.json", json); } // end cesium specific code