Removed reference to Lambert Coordinate Conversion

This commit is contained in:
2025-09-27 10:20:47 -05:00
parent 1129c6c4be
commit 0c7624b5f2
5 changed files with 0 additions and 44 deletions

View File

@@ -41,16 +41,6 @@ namespace GpsClient2 {
#region Events Triggers
protected virtual void OnGpsDataReceived(GpsDataEventArgs e) {
if (GpsInfo.CoordinateSystem == GpsCoordinateSystem.Lambert72) {
var x = 0.0d;
var y = 0.0d;
var h = 0.0d;
CoordinateConverterUtilities.GeoETRS89ToLambert72(e.Latitude, e.Longitude, 0, ref x, ref y, ref h);
e.CoordinateSystem = GpsCoordinateSystem.Lambert72;
e.Latitude = x;
e.Longitude = y;
}
GpsCallbackEvent?.Invoke(this, e);
}

View File

@@ -1,25 +0,0 @@
using System.Runtime.InteropServices;
namespace GpsClient2 {
internal class CoordinateConverterUtilities {
#if WIN64
private const string DllImport = @"plugins/ETRS89_LAMBERT_UTM_64bits.dll";
#else
private const string DllImport = @"plugins/ETRS89_LAMBERT_UTM_32bits.dll";
#endif
#region Coordinate conversion functions using NGI DLL
//Import the dll with the functions to calculate lambert coordinates
[DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
public static extern int GeoETRS89ToLambert72(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
[DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
public static extern int Lambert72ToLambert08(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
[DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
public static extern int Lambert72ToGeoETRS89(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
#endregion
}
}

View File

@@ -44,7 +44,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="BaseGpsClient.cs" />
<Compile Include="CoordinateConverterUtilities.cs" />
<Compile Include="Enums.cs" />
<Compile Include="EventArguments\GpsStatusEventArgs.cs" />
<Compile Include="Exceptions\UnknownTypeException.cs" />
@@ -65,13 +64,5 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="WindowsLocationApiGpsClient.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="plugins\ETRS89_LAMBERT_UTM_32bits.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="plugins\ETRS89_LAMBERT_UTM_64bits.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>