maps icon indicating copy to clipboard operation
maps copied to clipboard

Tracks will not register Garmin Basecamp gpx

Open cnic023 opened this issue 2 years ago • 5 comments

⚠️ This issue respects the following points: ⚠️

Bug description

Maps shows a simple gpx track (one created by me) but will not show a track exported from Basecamp in gpx form. However 'scan-tracks' does 'add' these Garmin tracks (they just don't show up under 'tracks' on the map). Attached is a sample Basecamp track (gpx) converted to .txt because gpx not supported The Kepler Track.txt

Steps to reproduce

  1. Run scan-tracks - shows all tracks 'added'
  2. One Track shows up but others don't

Expected behavior

All tracks should appear on map

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install of the server?

None

Is this bug present after an update or on a fresh install of the app?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

Maps 1.0.2
All other apps (Contacts etc up to date)

Nextcloud Signing status

No response

Nextcloud Logs

No response

Browser Console

No response

Additional info

Nextcloud version 25.0.5

cnic023 avatar Apr 03 '23 22:04 cnic023

The track that 'works', as opposed to the Garmin track, uses wpt rather than trkpt. Is there a tracks protocol that Maps uses (perhaps?) and the Garmin tracks (gpx) diverges from that protocol in some way? If I knew what the protocol was I could possible write a script to convert to something Maps can read. Of course this may not be the problem at all.

cnic023 avatar Apr 15 '23 21:04 cnic023

I wonder if replacing trkpt by wpt might already do the work. I see when I can check this

tacruc avatar Jul 01 '23 20:07 tacruc

I'm confused for me the kepler track shows up, without changes.

tacruc avatar Jul 02 '23 00:07 tacruc

Thanks for considering this. It still doesn’t show up for me: @.*** I also get “Geo link could not be copied to clipboard” when I select “share this location”. Perhaps relevant? Operating System: Linux 5.15.0-73-generic x86_64 PHP Version: 8.0.29 Mysql Version: 10.6.12 Nextcloud Nextcloud Hub 3https://nextcloud.com (25.0.5) Contacts 5.3.2 Maps 1.0.2 From: Arne Hamann @.> Sent: Sunday, 2 July 2023 12:23 pm To: nextcloud/maps @.> Cc: Chris Nicoll @.>; Author @.> Subject: Re: [nextcloud/maps] Tracks will not register Garmin Basecamp gpx (Issue #1027)

I'm confused for me the kepler track shows up, without changes.

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/maps/issues/1027#issuecomment-1616216534, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARFJ7WCJ65Y63NC5PVMC4YTXOC5PTANCNFSM6AAAAAAWR4O7OQ. You are receiving this because you authored the thread.Message ID: @.***>

cnic023 avatar Jul 02 '23 01:07 cnic023

My fitness tracker app exports gpx files that use a Garmin extension of the gpx format for the heart rate:

<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Notify for Xiaomi" xmlns="http://www.topografix.com/GPX/1/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="
http://www.topografix.com/GPX/1/1 
http://www.topografix.com/GPX/1/1/gpx.xsd 
http://www.garmin.com/xmlschemas/GpxExtensions/v3 
http://www.garmin.com/xmlschemas/GpxExtensionsv3.xsd 
http://www.garmin.com/xmlschemas/TrackPointExtension/v1 
http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd"
xmlns:gpxtpx="http://www.garmin.com/xmlschemas/TrackPointExtension/v1" xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
<name>Walk</name>
<trk><name>Walk</name><number>1</number><trkseg>
<trkpt lat="..." lon="...">
    <ele>...</ele>
    <time>2024-02-14T13:52:06Z</time>
    <extensions>
     <gpxtpx:TrackPointExtension>
      <gpxtpx:hr>...</gpxtpx:hr>
     </gpxtpx:TrackPointExtension>
    </extensions>
   </trkpt>
    ...
</trkseg></trk>
</gpx>

"..." are omitted sensitive numbers

They are working without any issue(the heart rate is just ignored). Maybe one of the many extensions is the issue, since i have only a few?

Having support for the heart rate to be on the map would be nice. I am thinking about implementing it.

omittedcoder avatar Feb 16 '24 16:02 omittedcoder