Add support for more GPS coordinate formats.

As requested in the user forum and in the mailing list, now support:
 - 46.473881 6.784696  (format used in XML files)
 - 48 51.491n 2 17.677e

I was not able to handle the XML format in a generic way without making
the code too ugly. So I've added an exception.

Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Patrick Valsecchi 2015-02-23 13:38:41 +01:00 committed by Dirk Hohndel
parent 0f6f1c7ccf
commit ce79b9ffa4
3 changed files with 73 additions and 22 deletions

View file

@ -18,6 +18,10 @@ private slots:
void testDecimalParse();
void testSpaceDecimalParse();
void testDecimalInversedParse();
void testXmlFormatParse();
void testNoUnitParse();
void testNegativeXmlFormatParse();
void testPrefixNoUnitParse();
private:
static void testParseOK(const QString &txt, double expectedLat,