Changeset 8662 in ntrip


Ignore:
Timestamp:
Apr 4, 2019, 12:27:17 PM (2 weeks ago)
Author:
stuerze
Message:

minor changes reagarding skl filenames

File:
1 edited

Legend:

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

    r8660 r8662  
    170170  }
    171171  if (!sklDir.isEmpty() && sklDir != "none") {
    172     QString staID;
     172    QString staID, staIDalternative;
     173    QUrl url;
    173174    int stIdLength = _mountPoint.path().length()-2;
    174     staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
    175     QUrl url(sklDir  + staID);
     175    staID =            _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
     176    staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl";
     177    url = sklDir  + staID;
    176178    if (url.port() == -1) {
    177179      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    190192      QTextStream in(outData);
    191193      irc = _sklHeader.read(&in);
     194    }
     195    else {
     196      url = sklDir  + staIDalternative;
     197      query->waitForRequestResult(url, outData);
     198      if (query->status() == bncNetQuery::finished &&
     199              outData.contains("END OF HEADER")) {
     200            QTextStream in(outData);
     201            irc = _sklHeader.read(&in);
     202          }
    192203    }
    193204
Note: See TracChangeset for help on using the changeset viewer.