Changeset 6223 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Oct 11, 2014, 2:11:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6192 r6223 164 164 if (query->status() == bncNetQuery::finished) { 165 165 irc = success; 166 _header._obsTypes.clear();167 166 QTextStream in(outData); 168 _ header.read(&in);167 _sklHeader.read(&in); 169 168 } 170 169 … … 186 185 if ( skl.exists() && skl.open(QIODevice::ReadOnly) ) { 187 186 readDone = true; 188 _header._obsTypes.clear();189 187 QTextStream in(&skl); 190 _ header.read(&in);188 _sklHeader.read(&in); 191 189 } 192 190 … … 340 338 _out.setf(ios::showpoint | ios::fixed); 341 339 340 // Set RINEX Version 341 // ----------------- 342 int intHeaderVers = (Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked ? 3 : 2); 343 342 344 // Read Skeleton Header 343 345 // -------------------- 344 bool skelRead = readSkeleton(); 345 346 // Set RINEX Version 347 // ----------------- 348 if ( Qt::CheckState(settings.value("rnxV3").toInt()) == Qt::Checked) { 349 _header._version = t_rnxObsHeader::defaultRnxObsVersion3; 346 if (readSkeleton()) { 347 _header.set(_sklHeader, intHeaderVers); 350 348 } 351 349 else { 352 _header. _version = t_rnxObsHeader::defaultRnxObsVersion2;350 _header.setDefault(_statID, intHeaderVers); 353 351 } 354 352 355 353 // A Few Additional Comments 356 354 // ------------------------- 357 if (skelRead || _addComments.size() == 0) { 358 _addComments.clear(); 359 _addComments << format.left(6) + " " 360 + _mountPoint.host() + _mountPoint.path(); 361 if (_header._obsTypes.size() == 0) { 362 _addComments << "Default set of observation types used"; 363 } 364 if (_nmea == "yes") { 365 _addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude; 366 } 367 } 368 369 // Set Marker Name 370 // --------------- 371 if (_header._markerName.isEmpty()) { 372 _header._markerName = _statID; 373 } 374 375 // Set Default Observation Types 376 // ----------------------------- 377 if (_header._obsTypes.size() == 0) { 378 if (_header._version < 3.0) { 379 _header._obsTypes['G'] << "C1" << "P1" << "L1" << "S1" 380 << "C2" << "P2" << "L2" << "S2"; 381 _header._obsTypes['R'] = _header._obsTypes['G']; 382 _header._obsTypes['E'] = _header._obsTypes['G']; 383 _header._obsTypes['J'] = _header._obsTypes['G']; 384 _header._obsTypes['S'] = _header._obsTypes['G']; 385 _header._obsTypes['C'] = _header._obsTypes['G']; 386 } 387 else { 388 _header._obsTypes['G'] << "C1C" << "L1C" << "S1C" 389 << "C2W" << "L2W" << "S2W" 390 << "C5" << "L5" << "S5"; 391 392 _header._obsTypes['J'] = _header._obsTypes['G']; 393 394 _header._obsTypes['R'] << "C1C" << "L1C" << "S1C" 395 << "C2P" << "L2P" << "S2P"; 396 397 _header._obsTypes['E'] << "C1" << "L1" << "S1" 398 << "C5" << "L5" << "S5" 399 << "C7" << "L7" << "S7" 400 << "C8" << "L8" << "S8"; 401 402 _header._obsTypes['S'] << "C1" << "L1" << "S1" 403 << "C5" << "L5" << "S5"; 404 405 _header._obsTypes['C'] << "C1" << "L1" << "S1" 406 << "C6" << "L6" << "S6" 407 << "C7" << "L7" << "S7"; 408 } 355 _addComments << format.left(6) + " " + _mountPoint.host() + _mountPoint.path(); 356 if (_nmea == "yes") { 357 _addComments << "NMEA LAT=" + _latitude + " " + "LONG=" + _longitude; 409 358 } 410 359
Note:
See TracChangeset
for help on using the changeset viewer.