Changeset 10532 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Sep 13, 2024, 5:43:34 PM (7 days ago)
Author:
stuerze
Message:

bug fixed: obs types from skl file are used now to write them into RINEX version 3 or 4 observation files as configured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r10217 r10532  
    7878
    7979  bncSettings settings;
    80   _rnxScriptName = settings.value("rnxScript").toString();
    81   expandEnvVar(_rnxScriptName);
    82 
     80  _rnxScriptName = settings.value("rnxScript").toString(); expandEnvVar(_rnxScriptName);
     81  _sklExt        = settings.value("rnxSkel").toString();
     82  _sklPath       = settings.value("rnxSkelPath").toString();
    8383  _pgmName  = QString(BNCPGMNAME).leftJustified(20, ' ', true);
    8484#ifdef WIN32
     
    173173    QUrl url;
    174174    int stIdLength = _mountPoint.path().length()-2;
    175     staID =            _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
    176     staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl";
     175    staID =            _mountPoint.path().mid(1,stIdLength).toUpper() + "." + _sklExt;
     176    staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + "." + _sklExt;
    177177    if (url.port() == -1) {
    178178      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    377377  // Local Skeleton file
    378378  // -------------------
    379   QString sklExt  = settings.value("rnxSkel").toString();
    380   QString sklPath = settings.value("rnxSkelPath").toString();
    381   expandEnvVar(sklPath);
    382   if (sklPath.length() > 0 &&
    383       sklPath[sklPath.length()-1] != QDir::separator()) {
    384     sklPath += QDir::separator();
    385   }
    386   if (sklPath.isEmpty()) {
    387     sklPath = rnxPath;
    388   }
    389   _localSklName            = sklPath + ID           + distStr + "." + sklExt;
    390   _localSklNameAlternative = sklPath + ID.toLower() + distStr + "." + sklExt;
     379  expandEnvVar(_sklPath);
     380  if (_sklPath.length() > 0 &&
     381      _sklPath[_sklPath.length()-1] != QDir::separator()) {
     382    _sklPath += QDir::separator();
     383  }
     384  if (_sklPath.isEmpty()) {
     385    _sklPath = rnxPath;
     386  }
     387  _localSklName            = _sklPath + ID           + distStr + "." + _sklExt;
     388  _localSklNameAlternative = _sklPath + ID.toLower() + distStr + "." + _sklExt;
    391389
    392390  if (_rnxVersion > 2) {
Note: See TracChangeset for help on using the changeset viewer.