|
@@ -207,61 +207,41 @@ namespace XdCxRhDW.App.EditForms
|
|
|
if (string.IsNullOrWhiteSpace(msat)) msat = cg.MainCode.Value.ToString();
|
|
|
var nsat = listSat.FirstOrDefault(m => m.SatCode == cg.Adja1Code.Value)?.Sat;
|
|
|
if (string.IsNullOrWhiteSpace(nsat)) nsat = cg.Adja1Code.Value.ToString();
|
|
|
- bool useNewGDOP = AppConfigHelper.Get("UseNewGDOP", true);
|
|
|
if (info.PosResType == EnumPosResType.X2D1)
|
|
|
{
|
|
|
- if (!useNewGDOP)
|
|
|
+ var xdDtoLine = DrawDtoLineHelper.DtoLineXdNew(dtoLineXd);
|
|
|
+ List<MapPolyline> polylines = new List<MapPolyline>();
|
|
|
+ foreach (var dtoLine in xdDtoLine)
|
|
|
{
|
|
|
- var xdDtoLine1 = DrawDtoLineHelper.DtoLineXdEx(dtoLineXd);
|
|
|
- mapControl1.DrawDtoLineTwo($"[{msat},超短{CDBAnt[0]}°]带参时差线", xdDtoLine1);
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- var xdDtoLine = DrawDtoLineHelper.DtoLineXdNew(dtoLineXd);
|
|
|
- List<MapPolyline> polylines = new List<MapPolyline>();
|
|
|
- foreach (var dtoLine in xdDtoLine)
|
|
|
+ var mapline = mapControl1.GetLine($"[{msat},超短{CDBAnt[0]}°]带参时差线", dtoLine.dtoLinePoints, true);
|
|
|
+ if (mapline == null)
|
|
|
{
|
|
|
- var mapline = mapControl1.GetLine($"[{msat},超短{CDBAnt[0]}°]带参时差线", dtoLine.dtoLinePoints, true);
|
|
|
- if (mapline == null)
|
|
|
- {
|
|
|
- continue;
|
|
|
- }
|
|
|
- polylines.Add(mapline);
|
|
|
+ continue;
|
|
|
}
|
|
|
- mapControl1.DrawDtoLine(polylines);
|
|
|
-
|
|
|
+ polylines.Add(mapline);
|
|
|
}
|
|
|
+ mapControl1.DrawDtoLine(polylines);
|
|
|
+
|
|
|
var tsDtoLine = DrawDtoLineHelper.DtoLine2XStart(twoStartOption);
|
|
|
mapControl1.DrawDtoLine($"[{msat},{nsat}]带参时差线", tsDtoLine);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (!useNewGDOP)
|
|
|
- {
|
|
|
- var xdDtoLine1 = DrawDtoLineHelper.DtoLineXdNoRefEx(dtoLineXd);
|
|
|
- mapControl1.DrawDtoLineTwo($"[{msat},超短{CDBAnt[0]}°]无参时差线", xdDtoLine1);
|
|
|
|
|
|
- }
|
|
|
- else
|
|
|
+ var xdDtoLine = DrawDtoLineHelper.DtoLineXdNoRefNew(dtoLineXd);
|
|
|
+ List<MapPolyline> polylines = new List<MapPolyline>();
|
|
|
+ foreach (var dtoLine in xdDtoLine)
|
|
|
{
|
|
|
- var xdDtoLine = DrawDtoLineHelper.DtoLineXdNoRefNew(dtoLineXd);
|
|
|
- List<MapPolyline> polylines = new List<MapPolyline>();
|
|
|
- foreach (var dtoLine in xdDtoLine)
|
|
|
+ var mapline = mapControl1.GetLine($"[{msat},超短{CDBAnt[0]}°]无参时差线", dtoLine.dtoLinePoints, true);
|
|
|
+ if (mapline == null)
|
|
|
{
|
|
|
- var mapline = mapControl1.GetLine($"[{msat},超短{CDBAnt[0]}°]无参时差线", dtoLine.dtoLinePoints, true);
|
|
|
- if (mapline == null)
|
|
|
- {
|
|
|
- continue;
|
|
|
- }
|
|
|
- polylines.Add(mapline);
|
|
|
+ continue;
|
|
|
}
|
|
|
- mapControl1.DrawDtoLine(polylines);
|
|
|
+ polylines.Add(mapline);
|
|
|
}
|
|
|
-
|
|
|
+ mapControl1.DrawDtoLine(polylines);
|
|
|
var tsDtoLine = DrawDtoLineHelper.DtoLine2XNoRefStart(twoStartOption);
|
|
|
mapControl1.DrawDtoLine($"[{msat},{nsat}]无参时差线", tsDtoLine);
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -384,14 +364,7 @@ namespace XdCxRhDW.App.EditForms
|
|
|
Adja1Z = dto.AdjaZ,
|
|
|
};
|
|
|
double[] res;
|
|
|
- if (AppConfigHelper.Get("UseNewPosX2D1NoRef", false))
|
|
|
- {
|
|
|
- res = PosApi.X2D1_PosNoRef_ZL(cgRes, StationRes);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- res = PosApi.X2D1_PosNoRef(cgRes, StationRes, dto.CalcConfidence);
|
|
|
- }
|
|
|
+ res = PosApi.X2D1_PosNoRef(cgRes, StationRes, dto.CalcConfidence);
|
|
|
this.txtPosRes.Text = $"{info.PosResType.GetEnumDisplayName()}定位点:[{res[0]:f4},{res[1]:f4}] 镜像点:[{res[3]:f4},{res[4]:f4}]";
|
|
|
}
|
|
|
else
|