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

Fails to import the tracklog from a Garmin Etrex 30x generated GPX #92

Open
PhilWhitehurst opened this issue Nov 23, 2021 · 0 comments
Open

Comments

@PhilWhitehurst
Copy link

PhilWhitehurst commented Nov 23, 2021

Used the following functions.

   
   // For GPX you need a string 

   SportsLib.importFromGPX(inputFile,DOMParser).then((result) => {
       // do Stuff with the file

        // convert to gpx
   const gpxPromise = new EventExporterGPX().getAsString(result);
   gpxPromise.then((gpxString) => {
       // writes the gpx to file
       fs.writeFileSync(`${userPath}/result.gpx`, gpxString, 'utf8');
       });

The input GPS looks like this

image

The output GPX looks like this

image

It's gone from 1348 trackpoints on the input file to 6 trackpoints on the output file.

It seems to generate the statistics ok, it just doesn't work when it comes to preserving the tracklog data from an Etrex30x GPX file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant