dougu3988 2019-07-08 10:32 采纳率: 100%
浏览 64

在Golang中计算GeoId波动

I need to compute for the undulation or geoID of lattitude and longitude using golang but i found this package i think its useful

https://github.com/garrettsickles/geolocation

implemented it but it gives me incorrect geoid and also i did by using dll which could be comfortable with me but the problem is that there is no easier way to read dll files in golang via unix environment but also found difficult to implement it

DLLExport

i used this in my dll and also i want to export it and read in golang but in windows it could be possible but as golang newbie i cannot be able to figure out how can i achieve reading dll in golang in my unix environment (macos darwin)

   public interface IComputeMSL
    {
        // DLL Export from msl result
        [DllExport(HelperStr.GetMSLDLL, CallingConvention.ThisCall)]
        double GetMSLResult(double lat, double lon, double gpsElevation);
        // DLL Export from WSG84
        [DllExport(HelperStr.GetWSG84DLL, CallingConvention.ThisCall)]
        double GetWSG84Result(double gpsElevation, double mslElevation);
    }

this is my c# dll reader which keeps the geoid computation correctly

   public class ComputeMSL : IComputeMSL
    {
        /* GetMSLResult from the parameter as lat, lon, and gps elevation */
        public double GetMSLResult(double lat, double lon, double gpsElevation) =>
            Helper.GetMSL(Helper.GetGeoID(lat, lon), gpsElevation);

        /* GetWSG84Result from the parameter gpsElevation and mslElevation */
        public double GetWSG84Result(double gpsElevation, double mslElevation) =>
            Helper.ConvertMSLToWSG84(gpsElevation, mslElevation);
    }

this is computeMSL which computes the msl result and wsg84 both of them are written in c# and used this package for it

GeoidHeightsDotNet

if anyone can help me to configure correctly my dll to be able to read in unix and windows environment at the same time or any package that can support the computation of geoID in golang or package that can compute egm86, egm2008 i would appreciate your help.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog