@@ -961,7 +961,18 @@ void DynAdjustPrinter::PrintCompMeasurements_YLLH(it_vmsr_t& _it_msr, UINT32& de
961961 CopyClusterMsr<vmsr_t >(adjust_.bmsBinaryRecords_ , _it_msr, y_msr);
962962
963963 it_vmsr_t _it_y_msr (y_msr.begin ());
964- snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLH_type);
964+
965+ // determine coord type
966+ switch (_it_msr->station3 )
967+ {
968+ case LLh_type_i:
969+ snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLh_type);
970+ break ;
971+ case LLH_type_i:
972+ default :
973+ snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLH_type);
974+ break ;
975+ }
965976
966977 UINT32 cluster_msr, cluster_count (_it_y_msr->vectorCount1 ), covariance_count;
967978 matrix_2d mpositions (cluster_count * 3 , 1 );
@@ -1022,7 +1033,17 @@ void DynAdjustPrinter::PrintCompMeasurements_YLLH(it_vmsr_t& _it_msr, UINT32& de
10221033
10231034 // Print height
10241035 _it_y_msr++;
1025- PrintComparativeMeasurements<LinearMeasurement>(' H' , _it_y_msr->measAdj , _it_y_msr->measCorr , _it_y_msr);
1036+ switch (_it_msr->station3 )
1037+ {
1038+ case LLh_type_i:
1039+ PrintComparativeMeasurements<LinearMeasurement>(' h' , _it_y_msr->measAdj , _it_y_msr->measCorr , _it_y_msr);
1040+ break ;
1041+ case LLH_type_i:
1042+ default :
1043+ PrintComparativeMeasurements<LinearMeasurement>(' H' , _it_y_msr->measAdj , _it_y_msr->measCorr , _it_y_msr);
1044+ break ;
1045+ }
1046+
10261047
10271048 // skip covariances until next point
10281049 _it_y_msr += covariance_count * 3 ;
@@ -2112,6 +2133,7 @@ double DynAdjustPrinter::CalculateLinearPrecision(const it_vmsr_t& it_msr, char
21122133 case ' Z' : // XYZ
21132134 case ' u' : // ENU
21142135 case ' H' : // LLH (Lat and Lon cardinals are printed in PrintMeasurementsAngular)
2136+ case ' h' :
21152137 return sqrt (it_msr->term4 );
21162138 case ' s' : // AED (Azimuth and vertical angle cardinals are printed in PrintMeasurementsAngular)
21172139 switch (adjust_.projectSettings_ .o ._adj_gnss_units ) {
@@ -2310,6 +2332,7 @@ void DynAdjustPrinter::PrintMeasurementValue<LinearMeasurement>(char cardinal, c
23102332 case ' Y' :
23112333 case ' Z' :
23122334 case ' H' :
2335+ case ' h' :
23132336 case ' n' :
23142337 case ' u' :
23152338 case ' s' :
@@ -2410,6 +2433,7 @@ void DynAdjustPrinter::PrintMeasurementCorrection(const char cardinal, const it_
24102433 break ;
24112434 case ' P' :
24122435 case ' L' :
2436+ case ' h' :
24132437 adjust_.adj_file << std::setw (PACORR) << std::setprecision (adjust_.PRECISION_SEC_MSR ) << std::fixed << std::right << 0.0 ;
24142438 break ;
24152439 default : // X, Y, Z
@@ -2445,7 +2469,18 @@ void DynAdjustPrinter::PrintAdjMeasurements_YLLH(it_vmsr_t& _it_msr)
24452469 CopyClusterMsr<vmsr_t >(adjust_.bmsBinaryRecords_ , _it_msr, y_msr);
24462470
24472471 it_vmsr_t _it_y_msr (y_msr.begin ());
2448- snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLH_type);
2472+
2473+ // determine coord type
2474+ switch (_it_msr->station3 )
2475+ {
2476+ case LLh_type_i:
2477+ snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLh_type);
2478+ break ;
2479+ case LLH_type_i:
2480+ default :
2481+ snprintf (_it_y_msr->coordType , STN_TYPE_WIDTH, " %s" , LLH_type);
2482+ break ;
2483+ }
24492484
24502485 UINT32 covr, cluster_msr, cluster_count (_it_y_msr->vectorCount1 ), covariance_count;
24512486 matrix_2d mpositions (cluster_count * 3 , 1 );
@@ -2574,8 +2609,17 @@ void DynAdjustPrinter::PrintAdjMeasurements_YLLH(it_vmsr_t& _it_msr)
25742609 PrintAdjMeasurementsAngular (' L' , _it_y_msr);
25752610
25762611 // Print height
2577- _it_y_msr++;
2578- PrintAdjMeasurementsLinear (' H' , _it_y_msr);
2612+ _it_y_msr++;
2613+ switch (_it_msr->station3 )
2614+ {
2615+ case LLh_type_i:
2616+ PrintAdjMeasurementsLinear (' h' , _it_y_msr);
2617+ break ;
2618+ case LLH_type_i:
2619+ default :
2620+ PrintAdjMeasurementsLinear (' H' , _it_y_msr);
2621+ break ;
2622+ }
25792623
25802624 // skip covariances until next point
25812625 _it_y_msr += covariance_count * 3 ;
0 commit comments