Difference between revisions of "Nicetrack"

From BITPlan Wiki
Jump to navigation Jump to search
Line 31: Line 31:
 
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:
 

Revision as of 08:09, 19 August 2023

OsProject

OsProject
edit
id  nicesrt
state  active
owner  WolfgangFahl
title  nicesrt
url  https://github.com/WolfgangFahl/nicesrt
version  0.0.7
description  Nice Subtitle Telemetry handling
date  2023-08-18
since  2023-08-16
until  


Installation

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

upgrade

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


Motivation

  • 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.