Removed reference to Lambert Coordinate Conversion
This commit is contained in:
@@ -41,16 +41,6 @@ namespace GpsClient2 {
|
|||||||
#region Events Triggers
|
#region Events Triggers
|
||||||
|
|
||||||
protected virtual void OnGpsDataReceived(GpsDataEventArgs e) {
|
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);
|
GpsCallbackEvent?.Invoke(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -44,7 +44,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="BaseGpsClient.cs" />
|
<Compile Include="BaseGpsClient.cs" />
|
||||||
<Compile Include="CoordinateConverterUtilities.cs" />
|
|
||||||
<Compile Include="Enums.cs" />
|
<Compile Include="Enums.cs" />
|
||||||
<Compile Include="EventArguments\GpsStatusEventArgs.cs" />
|
<Compile Include="EventArguments\GpsStatusEventArgs.cs" />
|
||||||
<Compile Include="Exceptions\UnknownTypeException.cs" />
|
<Compile Include="Exceptions\UnknownTypeException.cs" />
|
||||||
@@ -65,13 +64,5 @@
|
|||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="WindowsLocationApiGpsClient.cs" />
|
<Compile Include="WindowsLocationApiGpsClient.cs" />
|
||||||
</ItemGroup>
|
</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" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user