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

Augment the time chopping job to compute convex hulls for session_segments #105

Open
ZavenArra opened this issue May 4, 2024 · 0 comments
Assignees

Comments

@ZavenArra
Copy link
Contributor

In the time chopping job, we separate a session into session_segments. Once #103 is working correctly, we must extend this job to also compute convex hulls for each created session segment.

When a session is done processing, and all attached session_segments, have been created, each session_segment must have a convex hull geometry computed and updated into the convex_hull field.

A convex hull is generated by using the ST_Collect function postgis (part of the postgres data). https://postgis.net/docs/manual-3.0/ST_ConvexHull.html#:~:text=To%20compute%20the%20convex%20hull,shrink%2Dwrapping%22%20the%20geometries.

The job must call ST_Collect on all raw_captures in each session_segment. The resulting geometry is stored in the convex_hull field before the session.processed_at timestamp is update to now().

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

No branches or pull requests

2 participants