Add gpx speed parser

This commit is contained in:
Victor Shcherb 2017-02-23 10:56:45 +01:00
parent fcdfd5827f
commit b2e085dd45

View file

@ -1166,7 +1166,7 @@ public class GPXUtilities {
((WptPt) parse).comment = readText(parser, "cmt"); ((WptPt) parse).comment = readText(parser, "cmt");
} else if (parser.getName().equals("speed") ) { } else if (parser.getName().equals("speed") ) {
try { try {
String value = readText(parser, "cmt"); String value = readText(parser, "speed");
((WptPt) parse).speed = Float.parseFloat(value); ((WptPt) parse).speed = Float.parseFloat(value);
((WptPt) parse).getExtensionsToWrite().put("speed", value); ((WptPt) parse).getExtensionsToWrite().put("speed", value);
} catch (NumberFormatException e) { } catch (NumberFormatException e) {