Add project files.
This commit is contained in:
30
CoordinateConverterUtilities.cs
Normal file
30
CoordinateConverterUtilities.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user