Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. public class CoordinateConverterUtilities
  2. {
  3. #if WIN64
  4. private const string DllImport = @"Plugins/ETRS89_LAMBERT_UTM_64bits.dll";
  5. #else
  6. private const string DllImport = @"Plugins/ETRS89_LAMBERT_UTM_32bits.dll";
  7. #endif
  8.  
  9. #region Coordinate conversion functions using NGI DLL
  10.  
  11. //Import the dll with the functions to calculate lambert coordinates
  12. [DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
  13. public static extern int GeoETRS89ToLambert72(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
  14.  
  15. [DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
  16. public static extern int Lambert72ToLambert08(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
  17.  
  18. [DllImport(DllImport, SetLastError = true, CharSet = CharSet.Auto)]
  19. public static extern int Lambert72ToGeoETRS89(double Xi, double Yi, double Zi, ref double xo, ref double yo, ref double Ho);
  20.  
  21. #endregion
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement