fix for gpx parser and add bundle

This commit is contained in:
Greg DiCristofaro 2020-06-01 08:05:15 -04:00
parent a81e714d56
commit 8bac7f3179
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,8 @@ GeolocationTC_connection_failure_message_title=Connection Failure
GeolocationTC_empty_waypoint_message=Unable to generate KML report due to a lack of waypoints.\nPlease make sure there are waypoints visible before generating the KML report
GeolocationTC_KML_report_title=KML Report
GeolocationTC_report_progress_title=KML Report Progress
GeolocationTopComponent.WaypointFetcher.onErrorDescription=There was an error gathering some GPS Track Data. Some results have been excluded.
GeolocationTopComponent.WaypointFetcher.onErrorTitle=Error gathering GPS Track Data
GeoTopComponent_filer_data_invalid_msg=Unable to run waypoint filter.\nPlease select one or more data sources.
GeoTopComponent_filer_data_invalid_Title=Filter Failure
GeoTopComponent_filter_exception_msg=Exception occurred during waypoint filtering.

View File

@ -183,7 +183,8 @@ class GPXParserFileIngestModule(FileIngestModule):
point.latitude, point.longitude, elevation, None, 0, 0, 0, timeStamp))
try:
geoArtifactHelper.addTrack("Track", geoPointList, None)
if not geoPointList.isEmpty():
geoArtifactHelper.addTrack("Track", geoPointList, None)
except Blackboard.BlackboardException as e:
self.log(Level.SEVERE, "Error posting GPS track artifact for " +
file.getUniquePath() + " (objID = " + str(file.getId()) + "):" + e.getMessage())