6105 Clean up and bug fixes for GPX Parser

This commit is contained in:
Richard Cordovano 2020-03-05 20:25:28 -05:00
parent 174644f13f
commit f2e8e01a0c

View File

@ -178,7 +178,7 @@ class GPXParserDataSourceIngestModule(DataSourceIngestModule):
if (point.time != None):
timeStamp = long(time.mktime(point.time.timetuple()))
except Exception as e:
self.log(Level.WARNING, "Error getting track timestamp from " + file.getUniquePath() + " (objID = " + str(file.getId()) + "):" + e)
self.log(Level.WARNING, "Error getting track timestamp from " + file.getUniquePath() + " (objID = " + str(file.getId()) + "):" + str(e))
geoPointList.addPoint(GeoTrackPoint(point.latitude, point.longitude, elevation, None, 0, 0, 0, timeStamp))