Easy to use Python GPX library
Project description
🗺️ ezGPX
🔎 Description
Easy to use Python GPX library.
- PyPi: https://pypi.org/project/ezgpx/
- Documentation: https://ezgpx.readthedocs.io/en/latest/
- Source code: https://github.com/FABallemand/ezGPX
- Bug reports: https://github.com/FABallemand/ezGPX/issues
🛠️ Installation
pip install ezgpx
🏁 Get started
import ezgpx
import matplotlib
# Parse GPX file
gpx = ezgpx.GPX("file.gpx")
# Simplify (using Ramer-Dougle-Peucker algorithm)
gpx.simplify()
# Remove metadata
gpx.remove_metadata()
# Plot with Matplotlib
test_gpx.matplotlib_plot(figsize=(16,9),
size=6,
color="ele",
cmap=matplotlib.cm.get_cmap("gnuplot", 12),
colorbar=False,
start_point_color="green",
stop_point_color="red",
way_points_color=None,
background="World_Imagery",
offset_percentage=0.04,
dpi=100,
title=test_gpx.name(),
title_fontsize=20,
watermark=True,
file_path="img_1.png")
# Write new simplified GPX file
gpx.to_gpx("new_file.gpx")
🏋️ Advanced Use
import ezgpx
import matplotlib
# Parse GPX file
gpx = ezgpx.GPX("file.gpx")
# Plot with Matplotlib
test_gpx.expert_plot(figsize=(16,9),
subplots=(3,2),
map_position=(0,0),
map_size=10,
map_color="ele",
map_cmap=matplotlib.cm.get_cmap("viridis", 12),
map_colorbar=True,
start_point_color=None,
stop_point_color=None,
way_points_color=None,
background="World_Imagery",
offset_percentage=0.04,
xpixels=1000,
ypixels=None,
dpi=100,
elevation_profile_position=(1,0),
elevation_profile_size=10,
elevation_profile_color="ele",
elevation_profile_cmap=matplotlib.cm.get_cmap("viridis", 12),
elevation_profile_colorbar=False,
elevation_profile_grid=True,
elevation_profile_fill_color="lightgray",
elevation_profile_fill_alpha=0.5,
pace_graph_position=(2,0),
pace_graph_size=10,
pace_graph_color="ele",
pace_graph_cmap=None,
pace_graph_colorbar=False,
pace_graph_grid=True,
pace_graph_fill_color="lightgray",
pace_graph_fill_alpha=0.5,
pace_graph_threshold=15,
ascent_rate_graph_position=(1,1),
made_with_ezgpx_position=(0,1),
shared_color="ele",
shared_cmap=None,
shared_colorbar=True,
data_table_position=(2,1),
title=test_gpx.name(),
title_fontsize=20,
watermark=False,
file_path="img_2.png")
👤 Author
- Fabien ALLEMAND
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
ezgpx-0.2.0.tar.gz
(76.1 kB
view details)
Built Distribution
ezgpx-0.2.0-py3-none-any.whl
(85.2 kB
view details)
File details
Details for the file ezgpx-0.2.0.tar.gz
.
File metadata
- Download URL: ezgpx-0.2.0.tar.gz
- Upload date:
- Size: 76.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9942a17a0961f935e7d77ff115976b6efff571102632c21c48ec8247b232964 |
|
MD5 | 0421532b0ae5ab91d37281b1f1bd71ba |
|
BLAKE2b-256 | 51fd8826bcc1c1d25b0f24852afce37a3c5c640e086c5171da130f3c76a8ac35 |
File details
Details for the file ezgpx-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ezgpx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 85.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 479e0cd1ed4c136ddccd5ab276fa27f0d8374af32c526d2c3c3fd0ec7d2f8da4 |
|
MD5 | ef233603be61b4558a2886b94c2b7bcc |
|
BLAKE2b-256 | 11d1f9e8b06ff23e0e5ddf5d58556b7bcc69d8079238548e644c2a50995a9b66 |