Changeset 3962 in ntrip for trunk/BNC/rinex/rnxobsfile.cpp
- Timestamp:
- Apr 20, 2012, 11:34:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r3960 r3962 573 573 _header._startTime = header._startTime; 574 574 575 static const string systems = "GRES"; 576 575 577 // Copy Observation Types 576 578 // ---------------------- 577 for (unsigned ii = 0; ii < header._obsTypesV2.size(); ii++) {578 _header._obsTypesV2.push_back(header._obsTypesV2[ii]);579 }580 map<char, vector<QString> >::const_iterator it;581 for (it = header._obsTypesV3.begin(); it != header._obsTypesV3.end(); it++) {582 char sys = it->first;583 const vector<QString>& typesV3 = it->second;584 for (unsigned ii = 0; ii < typesV3.size(); ii++) {585 _header._obsTypesV3[sys].push_back(typesV3[ii]);586 }587 }588 589 static const string systems = "GRES";579 if (_trafo == trafoNone) { 580 for (unsigned ii = 0; ii < header._obsTypesV2.size(); ii++) { 581 _header._obsTypesV2.push_back(header._obsTypesV2[ii]); 582 } 583 map<char, vector<QString> >::const_iterator it; 584 for (it = header._obsTypesV3.begin(); it != header._obsTypesV3.end(); it++) { 585 char sys = it->first; 586 const vector<QString>& typesV3 = it->second; 587 for (unsigned ii = 0; ii < typesV3.size(); ii++) { 588 _header._obsTypesV3[sys].push_back(typesV3[ii]); 589 } 590 } 591 } 590 592 591 593 // Translate Observation Types v2 --> v3 592 594 // ------------------------------------- 593 if(_trafo == trafo2to3) {595 else if (_trafo == trafo2to3) { 594 596 for (unsigned ii = 0; ii < header._obsTypesV2.size(); ii++) { 595 597 const QString& typeV2 = header._obsTypesV2[ii]; … … 912 914 return ""; 913 915 } 916 917 // Translate Observation Type v3 --> v2 918 //////////////////////////////////////////////////////////////////////////// 919 QString t_rnxObsFile::type3to2(const QString& typeV3) { 920 if (typeV3 == "C1P") { 921 return "P1"; 922 } 923 else if (typeV3 == "C2P") { 924 return "P2"; 925 } 926 else { 927 return typeV3.left(2); 928 } 929 }
Note:
See TracChangeset
for help on using the changeset viewer.