Maproom / qmapshack

Consumer grade GIS software
GNU General Public License v3.0
298 stars 64 forks source link

GPX no more compatible with Osmand #585

Open XR-01 opened 1 year ago

XR-01 commented 1 year ago

Describe the bug

When I open a GPX with Osmand (Android navigation App), I can't see some track, randomly. I found that every time I save the same GPX with QMapShack, will be overwrited the header of the GPX (with all the xmlns). Without the string (xmlns:osmand="https://osmand.net/") Osmand can't open correctly the GPX. I think is a problem with the last QMapShack version (1.16.1) because with older version I never had this problem.

What have you done to circle down the problem?

I have to put this string:

xmlns:osmand="https://osmand.net/"

at the end of the head of the GPX, and with this tip the GPX is perfectly readed in Osmand.

To Reproduce

Open the attached GPX and save it: the string (xmlns:osmand="https://osmand.net/") will be overwritted.

Expected behavior

Screenshots

Attachments

prova.zip

Tracebacks

Desktop

Additional context

Thank you for your work!

kiozen commented 1 year ago

First glance into the problem: This is really an issue of QMapShack. The attached file is using extensions with the osmand namespace therefore it has to provide it in the list of extensions to create a valid GPX file.

kiozen commented 1 year ago

Can you please test the PR #589 if it fixes the problem

XR-01 commented 1 year ago

I have done the test, when I save the GPX from osmand the Osmand xmlns will be overwritten. Osmand can open the file, but if there are a lot of tracks Osmand don't show some tracks. If I manually add the xmlns to the GPX Osmand can open it without problems