Commit 231a5aa8 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed check for Earth frames in tutorials.

parent 3cc4e501
......@@ -438,7 +438,8 @@ public class KeyValueFileParser<Key extends Enum<Key>> {
// check the name against predefined frames
for (Predefined predefined : Predefined.values()) {
if (frameName.equals(predefined.getName())) {
if (predefined.toString().startsWith("ITRF")) {
if (predefined.toString().startsWith("ITRF") ||
predefined.toString().startsWith("GTOD")) {
return FramesFactory.getFrame(predefined);
} else {
throw new OrekitException(NOT_EARTH_FRAME, frameName);
......
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