Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning GeoDataFrame with LineString as geometries to TrajectoryCollection object #352

Open
oskarwiese opened this issue Sep 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@oskarwiese
Copy link

Is your feature request related to a problem?

I wish there was a way in MovingPandas to turn a GeoDataFrame into a trajectory collection so that the functions from the MovingPandas Library can be implement fast on large GeoDataFrames created from the to_traj_gdf.

The only way I’ve found to do this is:

  1. Convert LineStrings to Points
  2. Then re-create trajectories this way

Which for large datasets takes a very long time. All of the trajectories in the GeoDataFrame was originally created with to_traj_gdf, but it seems there is no way to go “back” to the TrajectoryCollection object.

It would be very helpful if there was a fast "way" to get to a trajectory collection.

@oskarwiese oskarwiese added the enhancement New feature or request label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant