Difference between revisions of "Nicetrack"

From BITPlan Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
{{OsProject
 
{{OsProject
|id=nicesrt
+
|id=nicetrack
 
|state=active
 
|state=active
 
|owner=WolfgangFahl
 
|owner=WolfgangFahl
 
|title=nicesrt
 
|title=nicesrt
|url=https://github.com/WolfgangFahl/nicesrt
+
|url=https://github.com/WolfgangFahl/nicetrack
|version=0.0.7
+
|version=0.0.9
|description=Nice Subtitle Telemetry handling
+
|description=Nice 3D Track handling
|date=2023-08-18
+
|date=2023-08-28
 
|since=2023-08-16
 
|since=2023-08-16
 
|storemode=property
 
|storemode=property
 
}}
 
}}
  
{{pip|nicesrt}}
+
{{pip|nicetrack}}
  
 
= Motivation =
 
= Motivation =
 +
== GPX tracks ==
 +
GPX tracks for cycling can be analyzed online see e.g.
 +
* https://cycle.travel/map/journey/149759
 +
* https://cycle.travel/gpx/149759.gpx
 +
 +
This module tries similar functionality
 +
 +
== DJI Drone videos ==
 
* DJI Drone videos may be accompanied by SRT files see https://en.wikipedia.org/wiki/SubRip
 
* DJI Drone videos may be accompanied by SRT files see https://en.wikipedia.org/wiki/SubRip
 
* These SRT files may contain flight telemetry data  
 
* These SRT files may contain flight telemetry data  
Line 31: Line 39:
 
There are several Python libraries and tools available that can help you convert between GPX, KML, GeoJSON, and SRT formats:
 
There are several Python libraries and tools available that can help you convert between GPX, KML, GeoJSON, and SRT formats:
  
* '''gpxpy''': This is a library to parse and manipulate GPX files. Once parsed, you can easily convert the data to other formats.
+
* [https://github.com/tkrajina/gpxpy gpxpy]: A library to parse and manipulate GPX files.
  * [https://github.com/tkrajina/gpxpy GitHub Repository]
+
* [https://github.com/cleder/fastkml fastkml]: A library to handle KML files.
 
+
* [https://github.com/geopy/geopy geopy]: Known for its geocoding functionalities.
* '''fastkml''': This is a library to handle KML files. It can help you parse and create KML files, which you can then convert to/from other formats.
+
* [https://github.com/frewsxcv/python-geojson geojson]: A library for creating and parsing GeoJSON files.
  * [https://github.com/cleder/fastkml GitHub Repository]
+
* [https://www.gpsbabel.org/ gpsbabel]: A command-line tool for converting between GPS data formats.
 
+
* [https://github.com/byroot/pysrt pySRT]: A library for SRT manipulations.
* '''geopy''': While geopy is more known for its geocoding functionalities, it can also help in some geospatial manipulations which can be useful when converting between formats.
 
  * [https://github.com/geopy/geopy GitHub Repository]
 
 
 
* '''geojson''': This library helps with the creation and parsing of GeoJSON files.
 
  * [https://github.com/frewsxcv/python-geojson GitHub Repository]
 
 
 
* '''gpsbabel''': This isn't a Python library, but it's worth mentioning. GPSBabel is a command-line tool that's great for converting between a myriad of GPS data formats, including GPX, KML, and many others.
 
  * [https://www.gpsbabel.org/ Official Website]
 
 
 
* '''pySRT''': If you want to convert geo-data to SRT (subtitle files) for some reason, you'd likely need to write custom functionality. SRT is a format for subtitle tracks, so it doesn't inherently have geographic significance. However, if you have a specific use-case in mind (e.g., geotagged video annotations), you can use the ''pySRT'' library for SRT manipulations.
 
  * [https://github.com/byroot/pysrt GitHub Repository]
 
 
 
Here's a basic approach if you'd like to convert between these formats:
 

Latest revision as of 12:23, 28 August 2023

OsProject

OsProject
edit
id  nicetrack
state  active
owner  WolfgangFahl
title  nicesrt
url  https://github.com/WolfgangFahl/nicetrack
version  0.0.9
description  Nice 3D Track handling
date  2023-08-28
since  2023-08-16
until  


Installation

pip install nicetrack
# alternatively if your pip is not a python3 pip
pip3 install nicetrack 
# local install from source directory of nicetrack 
pip install .

upgrade

pip install nicetrack  -U
# alternatively if your pip is not a python3 pip
pip3 install nicetrack -U


Motivation

GPX tracks

GPX tracks for cycling can be analyzed online see e.g.

This module tries similar functionality

DJI Drone videos

  • DJI Drone videos may be accompanied by SRT files see https://en.wikipedia.org/wiki/SubRip
  • These SRT files may contain flight telemetry data
  • This module supports analyzing and displaying this telemetry data

Links

Libraries

There are several Python libraries and tools available that can help you convert between GPX, KML, GeoJSON, and SRT formats:

  • gpxpy: A library to parse and manipulate GPX files.
  • fastkml: A library to handle KML files.
  • geopy: Known for its geocoding functionalities.
  • geojson: A library for creating and parsing GeoJSON files.
  • gpsbabel: A command-line tool for converting between GPS data formats.
  • pySRT: A library for SRT manipulations.