A dynamic adaptive grating algorithm for AIS-based ship trajectory compression. (18th January 2022)