[PATCH] Fix GPS import from divinglog

Miika Turkia miika.turkia at gmail.com
Sun Feb 24 23:20:58 PST 2013


Ticket #63 - divinglog 5.08 import issues
This patch will include the GPS coordinates from divinglog.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
I suppose the question really is whether we want to keep adding the XML
tag names here or just do the conversion to Subsurface format with XSLT.
---
 parse-xml.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/parse-xml.c b/parse-xml.c
index 0a69126..2986d48 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1018,14 +1018,20 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
 		return;
 	if (MATCH(".gps", gps_location, dive))
 		return;
+	if (MATCH(".Place", gps_location, dive))
+		return;
 	if (MATCH(".latitude", gps_lat, dive))
 		return;
 	if (MATCH(".sitelat", gps_lat, dive))
 		return;
+	if (MATCH(".lat", gps_lat, dive))
+		return;
 	if (MATCH(".longitude", gps_long, dive))
 		return;
 	if (MATCH(".sitelon", gps_long, dive))
 		return;
+	if (MATCH(".lon", gps_long, dive))
+		return;
 	if (MATCH(".location", utf8_string, &dive->location))
 		return;
 	if (MATCH("dive.name", utf8_string, &dive->location))
-- 
1.7.9.5



More information about the subsurface mailing list