mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0f6f1c7ccf
commit
ce79b9ffa4
3 changed files with 73 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue