Changeset 8668 in ntrip for branches/BNC_2.12/src/bncrinex.cpp


Ignore:
Timestamp:
Apr 10, 2019, 3:29:25 PM (6 years ago)
Author:
stuerze
Message:

some updates to support RINEX Version 3.04 filenames from short or erromeous sourcetable entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncrinex.cpp

    r8663 r8668  
    340340                                _rnxV3, &_nextCloseEpoch);
    341341
    342   int statIDlength = _statID.size() -1;
     342  int n = _statID.size();
     343  int statIDlength;
     344  if (n > 9) {
     345    statIDlength = 9; // rnx3
     346  }
     347  else if (n > 4) {
     348    statIDlength = 4; // rnx2
     349  }
     350  else {
     351    statIDlength = n;
     352  }
    343353  QString ID = _statID.left(statIDlength);
    344354  ID = ID.toUpper();
     
    374384        continue;
    375385      if (hlp.join(" ").indexOf(_statID, 0) != -1) {
    376         country = hlp[2];
     386        country = hlp[2].left(3);
    377387      }
    378388    }
Note: See TracChangeset for help on using the changeset viewer.