gpxfix


Namegpxfix JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/jannisborn/gpxfix
Summarygpxfix: GUI to fix .gpx tracks with missing sections
upload_time2023-05-22 06:23:00
maintainer
docs_urlNone
authorJannis Born
requires_python
licenseMIT
keywords gpx tracking sports running cycling strava
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/gpxfix.svg)](https://badge.fury.io/py/gpxfix)
[![License:
MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Downloads](https://pepy.tech/badge/gpxfix)](https://pepy.tech/project/gpxfix)
[![Downloads](https://pepy.tech/badge/gpxfix/month)](https://pepy.tech/project/gpxfix)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

# gpxfix
A small python-based GUI that helps you reestablishing broken GPX-files.
![alt text](assets/overview.png "Random shot")

## When can this be useful?
It's a common issue for every sportsman who loves recording activities. Your device runs out of battery before you come back home, you forgot to start the record when you left home or, even worse but a frequent problem in older iPhones, you lost GPS signal somewhere on the track for a couple of minutes. 
Then, checking out your track, you see straight lines or the first/last bit is completelty missing.

## Installation
`gpxfix` ships via `pypi`:
```sh
pip install gpxfix
```

Afterwards, just type `gpxfix` to start the UI





## Usage instruction
1. If you run the file, the default windofw of the GUI shows up:
![alt text](assets/Default.png "Main window in action")
2. You see a couple of options here, the first step should be to upload your GPX file
3. You get a confirmation message once the file has been parsed successfully
4. Press **Show Tracking Mistakes** to let the algorithm find the missing sections in your file. Per default a tracking mistake is defined as not having recorded a GPX trackpoint for at least **5 sec** with you having moved at least **400m**. I find this okay for cycling but you can change these parameters at the beginning of the code.

    1. A window pops up saying *"Great! No error has been found."* This means, your file itself is consistent, but you may want to insert something at the beginning or at the end. To do so, please click on the respective link which directs you to Google Maps. Then you simply have to tell Google where you started/ended your trip.
 
    2. Otherwise, you get an overview of the found errors, i.e. the program displays you the coordinates of the last trackpoint before and the first trackpoint after the missing spot. Now, assuming you want to fill in this gap in your GPX file, please select the number of the error from the dropdown and click **GO!** to instruct GoogleMaps to find the shortest path between the 2 trackpoints. Default vehicle is bicycle. Now you can set easily adjust this snippet such that it fits the route you actually took. 
    ![alt text](assets/GM.png "Create the missing part of the track on Google Maps")
**NOTE: In this window you determine *where* your snippet will be inserted. ** If you want to insert a snippet at the start click "I miss the start of my ride". If you dont select *anything* here, the program will not know *where* to insert your snippet and fail later.


6. Now, we want to merge the snippet we just created with the broken track we recorded. For this, we use a nice tool called [mapstogpx](https://www.mapstogpx.com). Past the link from the Google Maps snippet you just created and download the file (make sure you to tick **Advanced Settings -> Include Elevation** before downloading). Please also make sure to remember the distance of the snippet (according to Googe Maps).


7. Tell the program where you saved the snippet via **Upload GPX fragment**.
8. You have to fill in the distance of the fragment that you want to merge (for some reason, ```gpxpy.geo.haversine_distance``` behaves a bit erratically and consequently speed estimation is imprecise). Then press **OK** and then **Repair!**
9. Hopefully, everything went through and the repaired file was saved in the directory "*Corrected Files*"
    ![alt text](assets/success.png "Confirmation message")

10. If you have multiple issues with your GPX file, just repeat the procedure.

Feel free to fork and please report any issues.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jannisborn/gpxfix",
    "name": "gpxfix",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "GPX,Tracking,Sports,Running,Cycling,Strava",
    "author": "Jannis Born",
    "author_email": "jannis.born@gmx.de",
    "download_url": "https://files.pythonhosted.org/packages/61/3f/dca7857e953ef059a3e0fe0aed5b134c917bc30cf9a28e937c554a7f5b88/gpxfix-0.0.5.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/gpxfix.svg)](https://badge.fury.io/py/gpxfix)\n[![License:\nMIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Downloads](https://pepy.tech/badge/gpxfix)](https://pepy.tech/project/gpxfix)\n[![Downloads](https://pepy.tech/badge/gpxfix/month)](https://pepy.tech/project/gpxfix)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# gpxfix\nA small python-based GUI that helps you reestablishing broken GPX-files.\n![alt text](assets/overview.png \"Random shot\")\n\n## When can this be useful?\nIt's a common issue for every sportsman who loves recording activities. Your device runs out of battery before you come back home, you forgot to start the record when you left home or, even worse but a frequent problem in older iPhones, you lost GPS signal somewhere on the track for a couple of minutes. \nThen, checking out your track, you see straight lines or the first/last bit is completelty missing.\n\n## Installation\n`gpxfix` ships via `pypi`:\n```sh\npip install gpxfix\n```\n\nAfterwards, just type `gpxfix` to start the UI\n\n\n\n\n\n## Usage instruction\n1. If you run the file, the default windofw of the GUI shows up:\n![alt text](assets/Default.png \"Main window in action\")\n2. You see a couple of options here, the first step should be to upload your GPX file\n3. You get a confirmation message once the file has been parsed successfully\n4. Press **Show Tracking Mistakes** to let the algorithm find the missing sections in your file. Per default a tracking mistake is defined as not having recorded a GPX trackpoint for at least **5 sec** with you having moved at least **400m**. I find this okay for cycling but you can change these parameters at the beginning of the code.\n\n    1. A window pops up saying *\"Great! No error has been found.\"* This means, your file itself is consistent, but you may want to insert something at the beginning or at the end. To do so, please click on the respective link which directs you to Google Maps. Then you simply have to tell Google where you started/ended your trip.\n \n    2. Otherwise, you get an overview of the found errors, i.e. the program displays you the coordinates of the last trackpoint before and the first trackpoint after the missing spot. Now, assuming you want to fill in this gap in your GPX file, please select the number of the error from the dropdown and click **GO!** to instruct GoogleMaps to find the shortest path between the 2 trackpoints. Default vehicle is bicycle. Now you can set easily adjust this snippet such that it fits the route you actually took. \n    ![alt text](assets/GM.png \"Create the missing part of the track on Google Maps\")\n**NOTE: In this window you determine *where* your snippet will be inserted. ** If you want to insert a snippet at the start click \"I miss the start of my ride\". If you dont select *anything* here, the program will not know *where* to insert your snippet and fail later.\n\n\n6. Now, we want to merge the snippet we just created with the broken track we recorded. For this, we use a nice tool called [mapstogpx](https://www.mapstogpx.com). Past the link from the Google Maps snippet you just created and download the file (make sure you to tick **Advanced Settings -> Include Elevation** before downloading). Please also make sure to remember the distance of the snippet (according to Googe Maps).\n\n\n7. Tell the program where you saved the snippet via **Upload GPX fragment**.\n8. You have to fill in the distance of the fragment that you want to merge (for some reason, ```gpxpy.geo.haversine_distance``` behaves a bit erratically and consequently speed estimation is imprecise). Then press **OK** and then **Repair!**\n9. Hopefully, everything went through and the repaired file was saved in the directory \"*Corrected Files*\"\n    ![alt text](assets/success.png \"Confirmation message\")\n\n10. If you have multiple issues with your GPX file, just repeat the procedure.\n\nFeel free to fork and please report any issues.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "gpxfix: GUI to fix .gpx tracks with missing sections",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/jannisborn/gpxfix"
    },
    "split_keywords": [
        "gpx",
        "tracking",
        "sports",
        "running",
        "cycling",
        "strava"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f1dbb0086af1f62ebec6f5e444c9bf4826e3c4aeeaecfc05d257d3feb5b8b8a0",
                "md5": "6e39a1aa474cb2a0d1e74ae2cb62feb4",
                "sha256": "84575ce8a8315aa202ea68d6df177f3b25c61be6d040852747f204f6c36ba03a"
            },
            "downloads": -1,
            "filename": "gpxfix-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e39a1aa474cb2a0d1e74ae2cb62feb4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10617,
            "upload_time": "2023-05-22T06:22:58",
            "upload_time_iso_8601": "2023-05-22T06:22:58.615358Z",
            "url": "https://files.pythonhosted.org/packages/f1/db/b0086af1f62ebec6f5e444c9bf4826e3c4aeeaecfc05d257d3feb5b8b8a0/gpxfix-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "613fdca7857e953ef059a3e0fe0aed5b134c917bc30cf9a28e937c554a7f5b88",
                "md5": "a557eb00e484e067ac8769da89dda3b1",
                "sha256": "807236d0ff097777dcfbfe11e206dfe29c1e269af87ad23352a4627331e8319f"
            },
            "downloads": -1,
            "filename": "gpxfix-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a557eb00e484e067ac8769da89dda3b1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12310,
            "upload_time": "2023-05-22T06:23:00",
            "upload_time_iso_8601": "2023-05-22T06:23:00.021208Z",
            "url": "https://files.pythonhosted.org/packages/61/3f/dca7857e953ef059a3e0fe0aed5b134c917bc30cf9a28e937c554a7f5b88/gpxfix-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-22 06:23:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jannisborn",
    "github_project": "gpxfix",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "gpxfix"
}
        
Elapsed time: 0.08204s