Python package for manipulating gpx files and easily convert gpx to other different formats.
Project description
gpx_converter
Python package for manipulating gpx files and easily convert gpx to other different formats.
Free software: MIT license
Documentation: https://gpx-converter.readthedocs.io.
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
Installation
$ pip install gpx_converter
Quick Usage
from gpx_converter import Converter
Convert from gpx to csv:
Converter(input_file=your_input_file).gpx_to_csv(output_file=your_output_file)
Convert from gpx to excel sheets:
Converter(input_file=your_input_file).gpx_to_excel(output_file=your_output_file)
Convert from gpx to json:
Converter(input_file=your_input_file).gpx_to_json(output_file=your_output_file)
Convert gpx file to dataframe:
df = Converter(input_file=your_input_file).gpx_to_pandas_dataframe()
Likewise you can convert the other way around -> from 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)
Automate the conversion of multiple csv file to gpx:
Converter.convert_multi_csv_to_gpx(dirpath='your_directory/')
Apply spline interpolation on gpx file:
interpolated_coordinates = Converter.spline_interpolation(cv=your_array_of_control_vertices)
Contributions
Please contribute to the project and feel free to give me feedback anytime or just write me up if you find the package useful.
History
1.1 (2020-05-08)
Stable release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gpx_converter-1.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29873fa0ead8e1907bcb05068051117279d6cee75687b0a8b1ee7de7678ed7d |
|
MD5 | 037a09fa3b2f38fc2dfaea047a5de80f |
|
BLAKE2b-256 | eccefe758f7c3e533f2af34cd788a0373708a7f4ec3bb9ea12c9e2332995b719 |