irfan-arshad-arbisoft / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Cannot open KML file with empty fields in track extended data #1413

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put a file from attachment to /sdcard/MyTracks/kml
2. Open application, start import all KML files from SD-card

What is the expected output? What do you see instead?
Expected: You get one track imported to MyTracks
Actual: MyTracks imports zero tracks. According to 
https://developers.google.com/kml/documentation/kmlreference#gxtrack, empty 
gx:value is valid for gx:Track element. If you set some not-empty value, import 
works fine.

What version of MyTracks are you using? On what version of Android? On what
phone?
MyTracks 2.0.5, Android 4.2.2, Sony Xperia Z

Original issue reported on code.google.com by bogdanov...@gmail.com on 21 Oct 2013 at 5:17

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry, wrong file, correct in attachment below

Original comment by bogdanov...@gmail.com on 21 Oct 2013 at 5:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for pointing this point. I fixed it so that if the gx:value is empty, it 
will skip the ExtendedData but still import the rest of kml.

This is different from the spec where one should interpolated the data if 
gx:value is empty. My Tracks is not designed as a full kml parser. It's main 
objective is import kml files generated by My Tracks.

Original comment by jshih@google.com on 17 Jan 2014 at 9:04

GoogleCodeExporter commented 9 years ago
Thanks!

This seems enough for viewing my KML files in My Tracks.

Original comment by bogdanov...@gmail.com on 23 Jan 2014 at 4:43