inPolygon entry time and exit time
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi
here my scope:
I have tracking position of many runner (name,lat long and time). I need to know at waht time each runner enter and exit from a polygon (defined by lat long).
What I did so far:
Using inpolygon function I create a new table with runner name, lat long, and time when they were inside the polygon but data they are quite a lot.
Anyone has an idea on how I could select for each runner only the entry time and exit time form the polygon?
Any advice on how to approach the problem is welcome.
thank you
댓글 수: 0
답변 (1개)
Dheeraj Singh
2019년 7월 30일
I understand that the main issue is repeated querying of large number of points to inpoygon function.
One approach can be filtering of points that are too far away from the polygon.
So, you can make two extra polygons like the below image with one extra polygon but with one polygon inside the original polygon:
So, at a time instance you can query only points which are not too far from the original polygon.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!