Beispiel #1
0
        public Result LocateByPath()
        {
            PathAnalysis pa  = new PathAnalysis(virname);
            ResultRecord ans = pa.StartAnalysis(ratioAP, ratioP, ratioAPW);

            Hashtable ht = new Hashtable();

            ht["Version"] = this.virname;
            ht["k"]       = this.k;
            DataTable dt = IbatisHelper.ExecuteQueryForDataTable("queryLocResult", ht);

            dt = JWDCompute(dt);
            if (!ans.GetIsLocated())
            {
                return(new Result(false, ans.GetMsg()));
            }
            else
            {
                string msg = string.Format("定位结果坐标:{0}\n干扰源坐标:{1}\n定位精度:{2}米", ans.GetResLocation(), ans.GetReaLocation(), ans.GetPrecise());
                //return new Result(true, msg, ans);
                return(new Result(true, msg, dt));
            }

            //return new Result(true, "ok", dt);
        }
Beispiel #2
0
        public Result LocateByPath()
        {
            PathAnalysis pa  = new PathAnalysis(virname);
            ResultRecord ans = pa.StartAnalysis(ratioAP, ratioP, ratioAPW);

            if (!ans.GetIsLocated())
            {
                return(new Result(false, ans.GetMsg()));
            }
            else
            {
                string msg = string.Format("定位结果坐标:{0}\n干扰源坐标:{1}\n定位精度:{2}米", ans.GetResLocation(), ans.GetReaLocation(), ans.GetPrecise());
                return(new Result(true, msg, ans));
            }
        }