Changeset 4054 in ntrip


Ignore:
Timestamp:
Apr 26, 2012, 12:59:59 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4038 r4054  
    133133      editRnxObsHeader(outObsFile);
    134134      outObsFile.writeHeader();
     135    }
     136    else {
     137      outObsFile.checkNewHeader(obsFile->header());
    135138    }
    136139    t_rnxObsFile::t_rnxEpo* epo = 0;
  • trunk/BNC/rinex/rnxobsfile.cpp

    r4053 r4054  
    10111011  setHeader(header, oldHeader._version);
    10121012
    1013   if (header._obsTypesV2 != oldHeader._obsTypesV2 ||
    1014       header._obsTypesV3 != oldHeader._obsTypesV3) {
    1015 
     1013  // Check Observation Types
     1014  // -----------------------
     1015  bool same = true;
     1016  if (_header._version < 3.0) {
     1017    if (_header._obsTypesV2 != oldHeader._obsTypesV2) {
     1018      same = false;
     1019    }
     1020  }
     1021  else {
     1022    QMapIterator<char, QVector<QString> > it(_header._obsTypesV3);
     1023    while (it.hasNext()) {
     1024      it.next();
     1025      char                    sys     = it.key();
     1026      const QVector<QString>& typesV3 = it.value();
     1027      if (!oldHeader._obsTypesV3.contains(sys) ||
     1028          oldHeader._obsTypesV3[sys] != typesV3) {
     1029        same = false;
     1030        break;
     1031      }
     1032    }
     1033  }
     1034
     1035  if (!same) {
    10161036    writeHeader();
    10171037  }
Note: See TracChangeset for help on using the changeset viewer.