Closed jearle1974 closed 4 years ago
Hi @jearle1974 again,
Interesting encounter... I have tested with my personal private project and on my end, it seems like it seems to be working as expected?
Judging from your two lines, it seems like you are already 'properly' using the metadata.
So, a few questions to ask:
gpx.metadata
itself nil
?As for your #56/#63 issue, sorry for the delays, but you can expect it to be merged soon, once I double check and confirm its working, etc.
yes the gpx.metadata itself is nil upon opening the file yes file was generated from CoreGPX It looks ok, after saving the file I ran the print root.gpx() and this was the result, I do not have any tracks or track segments as it was only a quick test inside without GPS. I will try adding a location file to see if I get same results.
<?xml version="1.0" encoding="UTF-8"?>
However after I open the file the metadata is nil as per the attached image
Even when adding location file and producing tracks and segments with my file I receive the same error. Any thoughts?
(Screenshot redacted)
I’ll scrutinised my code again tomorrow. Apologies for having buggy code in this project...
by the way, I have removed your second screenshot as it showed coordinates, and I thought, could violate your privacy, if you did this by accident.
Ok, thanks for removing :)
I would not classify your code as buggy by no means, it is great! I just seem to be having this small issue. It could be on my side...lol
I decided to try adding metadata info in Merlos iOS-Open-GPX-Tracker as well just to test. Upon reopening the file I did receive metadata as nil, same result as noted above.
Hi @jearle1974,
Can you try out #70? In my testings it appears to work fine. Thank you.
Works perfect Vincent, thanks for the fix!
good to know! will merge #70!
After creating and saving a GPX file with MetaData and verifying via print that the file does have the MetaData Tags, upon opening the file and converting via
guard let gpx = GPXParser(withURL: curFile)?.parsedData() else { completion(false); return; } let rideType = gpx.metadata?.keyword
the rideType as well as any other MetaData show nil.
Do you have documentation on how to properly use the MetaData?
Thank you in advance. Jason