Skip to main content

Easy to use Python GPX library

Project description

🗺️ ezGPX

GitHub PyPI - Version GitHub last commit Documentation Status PyPI - Downloads

🔎 Description

Easy to use Python GPX library.

🛠️ 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


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.1.tar.gz (79.0 kB view details)

Uploaded Source

Built Distribution

ezgpx-0.2.1-py3-none-any.whl (88.6 kB view details)

Uploaded Python 3

File details

Details for the file ezgpx-0.2.1.tar.gz.

File metadata

  • Download URL: ezgpx-0.2.1.tar.gz
  • Upload date:
  • Size: 79.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for ezgpx-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6affab144c43b08635152ad4484b0a70a8d0f5843ae3781beda160b04417339e
MD5 e3529ae5852cd25d5fe2b1b0ad1222be
BLAKE2b-256 5619fe9a47f6c665a50cabe3821b83db34dedd4f54c3627a5a0c61dc097e698a

See more details on using hashes here.

File details

Details for the file ezgpx-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ezgpx-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 88.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for ezgpx-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3dbe35e1741fe40a901d2beec2ffb5a9184e54342a66b5b31f44fd47cd7336b3
MD5 fd575f1fdafceb5d462de197b0afed59
BLAKE2b-256 de57f8938f381415e533ad9bcaf71b901f970d9a0a8c3c892ae08782ce8a2276

See more details on using hashes here.

Supported by

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