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

Explicit georect bounds for output #3

Open
oKcerG opened this issue Feb 28, 2022 · 2 comments
Open

Explicit georect bounds for output #3

oKcerG opened this issue Feb 28, 2022 · 2 comments

Comments

@oKcerG
Copy link

oKcerG commented Feb 28, 2022

Hello,
Thanks for this project, I'm having fun with it trying to generate gifs of the different type of rides I do.

One feature that I think might be useful is specifying the geographic bounds of the output image, not just the bounds for selecting activities.

It might be useful if you want to overlay the gif on another image (map tiles for example) or if you want to combine multiple rainbow-roads gifs together (one after the other or one on top of the other) and have the same bounds on them (not depending on the implicit bounds of all their activities).

One usecase I have is to show my activities for my commute to work followed by the activities for my commute back home.

Cheers

@NathanBaulch
Copy link
Owner

I did think about that but ultimately let the map extents automatically fit the data. I agree, this sounds useful if you want to animate different data with consistent bounds, for example if you generated a new map for each year.

Semi-related - I'm thinking about an option to stitch non-overlapping activities on the same day together so they're animated consecutively. So your work rides would be glued together (assuming same day). Does that help?

@oKcerG
Copy link
Author

oKcerG commented Mar 1, 2022

The option to stitch non-overlapping activities on the same day sounds interesting. How would be the option to use it look like in the cli?

Currently I am stitching 2 gifs file with -starts_near <home_region> -ends_near <work_region> and then -starts_near <work_region> -ends_near <home_region>. I have other rides on the same days that I don't want to include in the visualization (various errands, road rides, ...).

Another argument for the "georect" bounds would be to change the aspect ratio of the output, my commute is on the North/South axis so it produces a very thin gif.
Here's a comparison of the default output and one generated with a quickly hacked in -output_bounds option:
Default:
back_default

Bounds:
back_bounds

My stitched commute rides:
commute_combined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants