movingpandas.Trajectory.to_line_gdf#

Trajectory.to_line_gdf(columns=None, return_orig_tz=False)#

Return the trajectory’s line segments as GeoDataFrame.

Parameters:
  • columns (list[string]) – List of column names to copy from the trajectory dataframe

  • return_orig_tz (bool) – If True, adds timezone info back to the t and prev_t columns

Return type:

GeoDataFrame