An adaptive trajectory compression and feature preservation method for maritime traffic analysis