Skip to main content

Python package for manipulating gpx files and easily convert gpx to other different formats.

Project description

https://img.shields.io/pypi/v/gpx_converter.svg https://img.shields.io/travis/nidhaloff/gpx_converter.svg Documentation Status

Python package for manipulating gpx files and easily convert gpx to other different formats.

Motivation

I decided to create this project because I had gpx data that I needed to manipulate. I searched for a python package for this but I did not find what I was looking for, therefore I created the gpx-converter package to make gpx files manipulation very easy. Furthermore, the package contains methods for applying interpolation on the gpx data. This feature was very helpful for me since I also needed to interpolate the gpx data and convert it to csv. Feel free to contribute or to give me feedback anytime :)

Features

  • Convert gpx files to other formats such as csv, dataframe, excel and json

  • Convert csv files to gpx

  • Apply interpolation on the gpx data

How to use

"""
the package is straightforward to use by importing the Converter parent class that contains all
conversion methods or you can simply use it from terminal.

below are code examples but it does not cover all use cases. Therefore, it would be helpful to take
a look in the examples folder for more.

Conversion methods:
- gpx_to_csv
- gpx_to_pandas_dataframe
- gpx_to_excel
- gpx_to_json
- csv_to_gpx
- convert_multi_csv_to_gpx

"""
from gpx_converter import Converter

# convert gpx to csv
Converter(input_file=your_input_file).gpx_to_csv(output_file=your_output_file)

# convert gpx to a pandas dataframe
df = Converter(input_file=your_input_file).gpx_to_pandas_dataframe()

# convert csv to gpx
Converter(input_file=your_input_file).csv_to_gpx(lats_colname=column_name_of_latitudes,
                                                 longs_colname=column_name_of_longitudes,
                                                 output_file=your_output_file)

# convert multiple csv files to gpx (notice to use it as a static method)
Converter.convert_multi_csv_to_gpx(dirpath='test_data/')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpx_converter-1.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpx_converter-1.5-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gpx_converter-1.5.tar.gz.

File metadata

  • Download URL: gpx_converter-1.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for gpx_converter-1.5.tar.gz
Algorithm Hash digest
SHA256 04006527eafef010e5b5b5025c155abd4453bad98e3c560a04ba382ffb82d7c2
MD5 4b1287bea293e6858bc9661e8245afb6
BLAKE2b-256 e55c63b9d3c65c03b1724c0ced6ee11363d23752060529b05e73f1291a1861ec

See more details on using hashes here.

File details

Details for the file gpx_converter-1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: gpx_converter-1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for gpx_converter-1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0497f62c26796f90296bcbe27164d6b3787eb3db9eb653b8bbb0566896cd0d8
MD5 714bf93b6d8877ea7e0766410d34cabb
BLAKE2b-256 4c0862e2394d37074c67f60c12129af7476ae37e34ddc0381497b3b73f033281

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page