Skip to content

Commit 5c2645e

Browse files
EMS90EMS90
EMS90
authored and
EMS90
committed
Fixed Bug in Heading differences occuring on KSprung Elements, as these were not Transformed properly, we just copy the heading value from the successor.
1 parent 2b0cb09 commit 5c2645e

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

TRA.Lib/TrassenElementExt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public double MeanProjectionDeviation() {
143143
public string C { get { return c.ToString("F5").Replace(',','.'); } }
144144
public float Cf { get { return c; } }
145145
/// <value>Richtung am Elementanfang</value>
146-
public double T { get { return t; } }
146+
public double T { set { t = value; } get { return t; } }
147147
public int Kz { get { return (int)kz; } }
148148
public string KzString { get { return kz.ToString(); } }
149149
public double Scale { get { return scale; } }

TRA.Lib/TrassierungInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static TRATrasse ImportTRA(string fileName)
127127
TRATrasse trasse = (TRATrasse)Trasse.LoadedTrassen.Find(n => n.Filename.Contains(Path.GetFileName(fileName)));// Split('.')[0]));
128128
if (trasse != null)
129129
{
130-
TrassierungLog.Logger?.LogInformation("A existing TRA-Trasse was found, esisting TRA Data is overwritten", nameof(trasse));
130+
TrassierungLog.Logger?.LogInformation("A existing TRA-Trasse was found, existing TRA Data is overwritten", nameof(trasse));
131131
}
132132
else
133133
{

TRA.Tool/TRA.Tool.csproj

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<DefineConstants>$(DefineConstants);USE_SCOTTPLOT</DefineConstants>
1818
</PropertyGroup>
1919

20+
2021
<ItemGroup>
2122
<PackageReference Include="MaxRev.Gdal.Core" Version="3.10.0.306" />
2223
<PackageReference Include="MaxRev.Gdal.WindowsRuntime.Minimal" Version="3.10.0.306" />
@@ -29,12 +30,12 @@
2930
</ItemGroup>
3031

3132
<ItemGroup>
32-
<Reference Include="egbt22lib">
33-
<HintPath>..\..\egbt22trans\egbt22lib\bin\x64\Debug\netstandard2.1\egbt22lib.dll</HintPath>
34-
</Reference>
35-
<Reference Include="GeographicLib">
36-
<HintPath>..\..\egbt22trans\egbt22lib\bin\x64\Debug\netstandard2.1\GeographicLib.dll</HintPath>
37-
</Reference>
33+
<Resource Include="dbref_va_syst.csv">
34+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
35+
</Resource>
36+
<Resource Include="GCG2016v2023">
37+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
38+
</Resource>
3839
</ItemGroup>
3940

4041
<ItemGroup>
@@ -65,12 +66,6 @@
6566
<None Update="bkg_license.txt">
6667
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6768
</None>
68-
<None Update="dbref_va_syst.csv">
69-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
70-
</None>
71-
<None Update="GCG2016v2023">
72-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
73-
</None>
7469
</ItemGroup>
7570

7671
</Project>

TRA.Tool/TransformPanelBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ private void TrassenTransform(TRATrasse trasse, TransformSetup transformSetup)
141141
else
142142
{
143143
element.Successor.L = element.Successor.Successor.S - element.S - element.L * element.Scale; //if there is still a deviation in Sation-values update this in KSprung-Length
144+
element.Successor.T = element.Successor.Successor.T;
144145
}
145146
}
146147
}

0 commit comments

Comments
 (0)