{"action":"created","issue":{"url":"https://api.github.com/repos/darktable-org/darktable/issues/1007","labels_url":"https://api.github.com/repos/darktable-org/darktable/issues/1007/labels{/name}","comments_url":"https://api.github.com/repos/darktable-org/darktable/issues/1007/comments","events_url":"https://api.github.com/repos/darktable-org/darktable/issues/1007/events","html_url":"https://github.com/darktable-org/darktable/pull/1007","id":114680295,"number":1007,"title":"gpx: parse only elements within trk","user":{"login":"edgomez","id":1665650,"avatar_url":"https://avatars.githubusercontent.com/u/1665650?v=3","gravatar_id":"","url":"https://api.github.com/users/edgomez","html_url":"https://github.com/edgomez","followers_url":"https://api.github.com/users/edgomez/followers","following_url":"https://api.github.com/users/edgomez/following{/other_user}","gists_url":"https://api.github.com/users/edgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/edgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgomez/subscriptions","organizations_url":"https://api.github.com/users/edgomez/orgs","repos_url":"https://api.github.com/users/edgomez/repos","events_url":"https://api.github.com/users/edgomez/events{/privacy}","received_events_url":"https://api.github.com/users/edgomez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/darktable-org/darktable/milestones/2","html_url":"https://github.com/darktable-org/darktable/milestones/1.7","labels_url":"https://api.github.com/repos/darktable-org/darktable/milestones/2/labels","id":828946,"number":2,"title":"1.7","description":"","creator":{"login":"LebedevRI","id":88600,"avatar_url":"https://avatars.githubusercontent.com/u/88600?v=3","gravatar_id":"","url":"https://api.github.com/users/LebedevRI","html_url":"https://github.com/LebedevRI","followers_url":"https://api.github.com/users/LebedevRI/followers","following_url":"https://api.github.com/users/LebedevRI/following{/other_user}","gists_url":"https://api.github.com/users/LebedevRI/gists{/gist_id}","starred_url":"https://api.github.com/users/LebedevRI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LebedevRI/subscriptions","organizations_url":"https://api.github.com/users/LebedevRI/orgs","repos_url":"https://api.github.com/users/LebedevRI/repos","events_url":"https://api.github.com/users/LebedevRI/events{/privacy}","received_events_url":"https://api.github.com/users/LebedevRI/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2014-10-16T14:40:27Z","updated_at":"2015-11-02T20:46:24Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-11-02T20:46:07Z","updated_at":"2015-11-05T16:42:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/darktable-org/darktable/pulls/1007","html_url":"https://github.com/darktable-org/darktable/pull/1007","diff_url":"https://github.com/darktable-org/darktable/pull/1007.diff","patch_url":"https://github.com/darktable-org/darktable/pull/1007.patch"},"body":"I came to use a few KML<->GPX online converters, and also a popular\r\nopen source gps GPX logger on Android. These were generating GPX files\r\nthat darktable would throw a warning at, and the message is not very\r\nclear. Try to avoid that.\r\n\r\nThe basic document structure was:\r\n<gpx>\r\n<wpt lat=\"xxx\" lon=\"yyy\">\r\n <ele>average of the waypoints</ele>\r\n <name>Description</name>\r\n</wpt>\r\n<trk>\r\n <trkpt></trkpt>...\r\n</trk>\r\n</gpx>\r\n\r\nThis structure is perfectly legit when looking at the XML schema file.\r\n\r\nThe problem is that we parse all \"wptType\" sub elements wether or not we're\r\nin a trk>trkpt or not, and DT chokes if no trkpt is actually being parsed.\r\n\r\nSo we must better track what we're actually parsing and currently limit the\r\nwptType subelements parsing within trk>trkpt"},"comment":{"url":"https://api.github.com/repos/darktable-org/darktable/issues/comments/154116928","html_url":"https://github.com/darktable-org/darktable/pull/1007#issuecomment-154116928","issue_url":"https://api.github.com/repos/darktable-org/darktable/issues/1007","id":154116928,"user":{"login":"edgomez","id":1665650,"avatar_url":"https://avatars.githubusercontent.com/u/1665650?v=3","gravatar_id":"","url":"https://api.github.com/users/edgomez","html_url":"https://github.com/edgomez","followers_url":"https://api.github.com/users/edgomez/followers","following_url":"https://api.github.com/users/edgomez/following{/other_user}","gists_url":"https://api.github.com/users/edgomez/gists{/gist_id}","starred_url":"https://api.github.com/users/edgomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edgomez/subscriptions","organizations_url":"https://api.github.com/users/edgomez/orgs","repos_url":"https://api.github.com/users/edgomez/repos","events_url":"https://api.github.com/users/edgomez/events{/privacy}","received_events_url":"https://api.github.com/users/edgomez/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T16:42:32Z","updated_at":"2015-11-05T16:42:32Z","body":"thanks @houz, if no 11.6.x release is planned then I'll just push the PR this evening on master."}}