Commit 9ad7fd3b authored by Luc Maisonobe's avatar Luc Maisonobe

Added forgotten call to type parsing.

parent 91e97f6a
...@@ -182,7 +182,7 @@ public class SP3Parser implements OrbitFileParser { ...@@ -182,7 +182,7 @@ public class SP3Parser implements OrbitFileParser {
file.setDataUsed(scanner.next()); file.setDataUsed(scanner.next());
file.setCoordinateSystem(scanner.next()); file.setCoordinateSystem(scanner.next());
file.setOrbitType(SP3OrbitType.valueOf(scanner.next())); file.setOrbitType(SP3OrbitType.parseType(scanner.next()));
file.setAgency(scanner.next()); file.setAgency(scanner.next());
break; break;
} }
...@@ -250,9 +250,11 @@ public class SP3Parser implements OrbitFileParser { ...@@ -250,9 +250,11 @@ public class SP3Parser implements OrbitFileParser {
// now identify the time system in use // now identify the time system in use
final String tsStr = line.substring(9, 12).trim(); final String tsStr = line.substring(9, 12).trim();
final TimeSystem ts = TimeSystem.GPS; final TimeSystem ts;
if (!tsStr.equalsIgnoreCase("ccc")) { if (tsStr.equalsIgnoreCase("ccc")) {
TimeSystem.valueOf(tsStr); ts = TimeSystem.GPS;
} else {
ts = TimeSystem.valueOf(tsStr);
} }
file.setTimeSystem(ts); file.setTimeSystem(ts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment