Changeset 8671 in ntrip for trunk/BNC


Ignore:
Timestamp:
Apr 10, 2019, 3:40:00 PM (5 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
  • trunk/BNC/src/bncrinex.cpp

    r8664 r8671  
    341341                                _rnxV3, &_nextCloseEpoch);
    342342
    343   int statIDlength = _statID.size() -1;
     343  int n = _statID.size();
     344  int statIDlength;
     345  if (n > 9) {
     346    statIDlength = 9; // rnx3
     347  }
     348  else if (n > 4) {
     349    statIDlength = 4; // rnx2
     350  }
     351  else {
     352    statIDlength = n;
     353  }
    344354  QString ID = _statID.left(statIDlength);
    345355  ID = ID.toUpper();
     
    375385        continue;
    376386      if (hlp.join(" ").indexOf(_statID, 0) != -1) {
    377         country = hlp[2];
     387        country = hlp[2].left(3);
    378388      }
    379389    }
Note: See TracChangeset for help on using the changeset viewer.