Changeset 9186 in ntrip
- Timestamp:
- Oct 23, 2020, 10:09:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bncrinex.cpp
r9090 r9186 175 175 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl"; 176 176 staIDalternative = _mountPoint.path().mid(1,stIdLength).toLower() + ".skl"; 177 url = sklDir + "/" + staID;178 177 if (url.port() == -1) { 179 178 if (sklDir.contains("https", Qt::CaseInsensitive)) { … … 187 186 bncNetQuery* query = new bncNetQueryV2(true); 188 187 QByteArray outData; 188 url = sklDir + "/" + staID; 189 189 query->waitForRequestResult(url, outData); 190 190 if (query->status() == bncNetQuery::finished && … … 216 216 // Read the local file 217 217 // ------------------- 218 QFile skl(_ sklName);218 QFile skl(_localSklName), sklAlt(_localSklNameAlternative); 219 219 if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) { 220 220 QTextStream in(&skl); 221 if (_sklHeader.read(&in) == success) { 222 readDone = true; 223 } 224 } 225 else if ( sklAlt.exists() && sklAlt.open(QIODevice::ReadOnly) ) { 226 QTextStream in(&sklAlt); 221 227 if (_sklHeader.read(&in) == success) { 222 228 readDone = true; … … 371 377 QString sklExt = settings.value("rnxSkel").toString(); 372 378 if (!sklExt.isEmpty()) { 373 _sklName = path + ID + distStr + "." + sklExt; 379 _localSklName = path + ID + distStr + "." + sklExt; 380 _localSklNameAlternative = path + ID.toLower() + distStr + "." + sklExt; 374 381 } 375 382
Note:
See TracChangeset
for help on using the changeset viewer.