Giter Site home page Giter Site logo

gpx-csv-converter's People

Contributors

alexshires avatar ethanzh avatar jeroenbaaselsevier avatar schnurber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gpx-csv-converter's Issues

doesn't run by default

I can't get this to work out of the box, if I install it using pip install gpx_csv_converter and try to run a file:

Traceback (most recent call last):
  File "conv.py", line 1, in <module>
    import gpx_csv_converter
  File "/usr/local/lib/python3.4/dist-packages/gpx_csv_converter/__init__.py", line 18
    raise TypeError(f"The file {input_file_name} does not exist.")
                                                                ^
SyntaxError: invalid syntax

I ended up working my way around it by taking the code out, but I don't know why I'm getting this error, assuming this should work without issues.

Time conversion not working?

I tried to convert a file from OSRM.org
This resulted in the following error:
File "/...gpx_csv_converter/__init__.py", line 48, in __init__ base_time = iso_to_epoch(times[0]) IndexError: list index out of range

Line 86 of "__init__.py

Hello,
In the line 86 of init.py, the file is open with 'wb', which returns the error "TypeError: a bytes-like object is required, not 'str'".

Add ability to take file as input

Currently the module expects a string containing GPX data as input. This is obviously not feasible once the GPX files become sufficiently large.

I plan to have the module be able to accept a directory (where it will convert all GPX files in the directory) or an individual file (where it will convert that one file).

I'm leaning towards making these command-line arguments.

Encoding error when writing to csv: bytes-like object required instead of str

In python 3, one should
open(output_file_name, "w", encoding="utf-8", newline="")
at the very end of the script, instead of
open(output_file_name, "wb", encoding="utf-8", newline="")

Sorry I don't know how to contribute, I'm new to github

Thanks anyway for this script, it saved me time I don't want to spend learning XML ^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.