Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported GPX has no content when previously imported from bikerouter.de #235

Open
bergziege opened this issue Apr 1, 2025 · 2 comments
Open
Labels
bug Something isn't working Pending publication The issue is fixed and will be included in the next patch

Comments

@bergziege
Copy link

bergziege commented Apr 1, 2025

Hi there,

having a somewhat strange behavior where I can create a trail from a bikerouter.de gpx and it shows perfectly on the map and all. But when I try to export it as gpx I get a "empty" gpx with just some metadata and no trkpt.

Not having any trouble with bikerouter gpx files anywhere else.

Given:

A simple track created with bikerouter.de
test.gpx.txt (remove txt extension)

Create a new trail via "New Trail" -> From File -> Import

The trail imports perfectly and can be shown at the map and trail list and everywhere

When:

I export the trail as gpx.

Then:

I get the following file as a download. No error or something. It downloads perfectly but has no real content.
test-exported.gpx.txt (remove txt extension)

Running 0.16.1 but also had the behavior on 0.15.1.
Problem exists on both Chrome and Firefox

@felixx9
Copy link

felixx9 commented Apr 7, 2025

Works, when you you bikerouter fit format to transfer to wanderer.
But then other thing don't work, like file name (> is modified to _) etc.

Workaround: Save bikerouter share-URL in description, ;)

@Flomp Flomp added the bug Something isn't working label Apr 8, 2025
@Flomp
Copy link
Owner

Flomp commented Apr 8, 2025

Ok, it took an eternity but I found the reason:
When importing wanderer uses the server side xml2js to read the XML. This parser properly ignores the comment at the top of the gpx file:

<!-- track-length = 15315 filtered ascend = 118 plain-ascend = -24 cost=45414 energy=0.1kwh time=50m 14s -->

When exporting wanderer uses the client side DOMParser which does not ignore the comment but assumes it is the root object leading to and empty track.

Fixed on main and will be included in the next patch.

@Flomp Flomp added Pending publication The issue is fixed and will be included in the next patch bug Something isn't working and removed bug Something isn't working labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Pending publication The issue is fixed and will be included in the next patch
Projects
None yet
Development

No branches or pull requests

3 participants