Closed benparkergit closed 4 months ago
Thank you for the report. Can you share the data sample to reproduce the error?
I've tested applying a filter to the AIS sample shipped with the plugin but I cannot reproduce the issue this way.
@benparkergit Can you test with the new development version to see if you get the new and improved error message?
Algorithm 'Split trajectories at observation gaps' starting…
Input parameters:
{ 'INPUT' : 'memory://Point?crs=EPSG:4326&field=id:integer(0,0)&field=sog:double(0,0)&field=cog:double(0,0)&field=heading:double(0,0)&field=rot:double(0,0)&field=basedatetime:string(255,0)&field=status:integer(0,0)&field=voyageid:string(0,0)&field=mmsi:string(0,0)&field=speed:double(0,0)&field=direction:double(0,0)&uid={7fd8c223-ad86-4a51-a1b2-e7a567703d09}', 'OUTPUT_PTS' : 'TEMPORARY_OUTPUT', 'OUTPUT_TRAJS' : 'TEMPORARY_OUTPUT', 'SPEED_UNIT' : 'km/h', 'TIME_FIELD' : 'basedatetime', 'TIME_GAP' : '100 hours', 'TRAJ_ID_FIELD' : 'id' }
Traceback (most recent call last):
File "C:\Users/anita/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\trajectoriesAlgorithm.py", line 161, in processAlgorithm
File "C:\Users/anita/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\processing_trajectory\qgis_processing\trajectoriesAlgorithm.py", line 115, in create_tc
raise ValueError(
ValueError: The resulting trajectory collection is empty. Check that the trajectory ID and timestamp fields have been configured correctly.
Execution failed after 0.09 seconds
I am very sorry I cannot reproduce the error. I will keep trying and report back.
No worries. Let's reopen this issue when you find something.
I hope I am doing this right... The tool is super-useful for my work, thank you.
I filtered a point layer of AIS ship data, to reduce it to three MMSI numbers.
Then I ran the "Split Trajectories at Time Intervals" on the filtered layer and I get this error: