remisalmon / Strava-local-heatmap

Python script to generate a high resolution heatmap from Strava GPX files
https://git.io/fjXTL
MIT License
157 stars 34 forks source link

Unique line file #14

Open darrepac opened 2 years ago

darrepac commented 2 years ago

Hi CREPS_Rimouron963.zip

If the file has one unique line, the program fail.

Problem is here: with open(gpx_file) as file: for line in file:

remisalmon commented 2 years ago

@darrepac thanks for the report, did you get this GPX file from Strava? The parser in this script is very limited, and was only tested with GPX files from Strava.

darrepac commented 2 years ago

No, indeed this is a generic file not coming from Strava

bousqi commented 2 years ago

No, indeed this is a generic file not coming from Strava

@darrepac I just did a fix on a fork for this issue. You can find it in https://github.com/bousqi/Strava-local-heatmap A pull request is created to tackle this issue.