-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Move test files -Create example files -Update README [ci skip]
- Loading branch information
1 parent
7d99776
commit d96952c
Showing
22 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ezgpx | ||
|
||
# Parse GPX file | ||
gpx = ezgpx.GPX("file.gpx") | ||
|
||
# Plot with Matplotlib | ||
gpx.matplotlib_plot(title="Track", base_color="#FF0000", | ||
start_stop=True, way_points=False, file_path="img_1") | ||
|
||
# Plot with Matplotlib Basemap Toolkit | ||
gpx.matplotlib_basemap_plot(title="Track", base_color="#00FF00", | ||
start_stop=False, way_points=False, file_path="img_2") | ||
|
||
# Plot with gmap (Google Maps) | ||
gpx.gmap_plot(title="Track", base_color="#0000FF", start_stop=True, | ||
way_points=True, file_path="map_1.html", open=True) | ||
|
||
# Plot with Folium | ||
gpx.folium_plot(title="Track", tiles="OpenStreetMap", base_color="#000000", start_stop=True, | ||
way_points=True, minimap=True, coord_popup=True, file_path="map_2.html", open=True) | ||
|
||
# Write new GPX file | ||
gpx.to_gpx("new_file.gpx") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ezgpx | ||
|
||
# Parse GPX file | ||
gpx = ezgpx.GPX("file.gpx") | ||
|
||
# Write new GPX file | ||
gpx.to_gpx("new_file.gpx") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import ezgpx | ||
|
||
# Parse GPX file | ||
gpx = ezgpx.GPX("file.gpx") | ||
|
||
# Simplify (using Ramer-Dougle-Peucker algorithm) | ||
gpx.simplify() | ||
|
||
# Write new simplified GPX file | ||
gpx.to_gpx("new_file.gpx") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes