sagost / VideoUavTracker

A Qgis plugin, synch and display on map a video with a gps track. Fill Geographic Database with information and snapshot. Extract video frame with associated UTM coordinates for rapid photogrammetry use..
GNU General Public License v2.0
19 stars 5 forks source link

Please provide gpx sample #3

Open kikislater opened 5 months ago

kikislater commented 5 months ago

It seems that there is an issue with time parsing

For example, in metadata:

<time>2023-04-27T15:17:02+01:00</time>

and

        <time>2023-03-08T11:15:36Z</time>

in trkpt

generate an error =>

WARNING    Traceback (most recent call last):
              File "/home/sylvain/.local/share/QGIS/QGIS3/profiles/sylvain/python/plugins/Video_UAV_Tracker/NewProject.py", line 294, in SelectVideoGPX
              self.ParseGpx(self.GPXfile)
              File "/home/sylvain/.local/share/QGIS/QGIS3/profiles/sylvain/python/plugins/Video_UAV_Tracker/NewProject.py", line 385, in ParseGpx
              st_date = datetime.datetime.strptime(GPXList[0][1][3],'%Y-%m-%dT%H:%M:%S')
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             TypeError: strptime() argument 1 must be str, not int

Which format should be ok ?