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

Create track from a sf point geometry #72

Closed
PM-deer opened this issue Jun 23, 2022 · 2 comments
Closed

Create track from a sf point geometry #72

PM-deer opened this issue Jun 23, 2022 · 2 comments

Comments

@PM-deer
Copy link

PM-deer commented Jun 23, 2022

I have a dataframe of gps locations, but the locations are in one column as a sf point (lat,lon). Is there a way to create an amt track from a sf point geometry or will I need to seperate the column into two different columns to have a lat and lon column?
Thanks

@jmsigner
Copy link
Owner

There is a function as_track() which has a method for sfc_POINT. Hopefully, this helps, otherwise please let me know.

@PM-deer
Copy link
Author

PM-deer commented Jun 27, 2022

That worked. I have one more question, is there a way to use the as_track() function and keep a timestamp in the track?
Thank you.

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