Skip to main content
Question

Snapping point to lines and considering consecutive

  • July 2, 2019
  • 4 replies
  • 23 views

jugoslaviaa
Enthusiast
Forum|alt.badge.img+6

Hi all,

I have GPS coordinate as input and I would like to snap them to the closest lines, which works perfect with combination of Neighborfinder. However, While finding the closest, I would like to consider the consecutive points as well.

In the images, I have group the GPS point based on timeseries. So if the points have the same color, there are in the same time series. As you can see the closest line for some of the points are different then consecutive points. How can I include the group of consecutive points while finding the closest line to the point?

Thanks in advance.

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Celebrity
  • 7843 replies
  • July 2, 2019

A possible way I can think of is:

  1. Aggregator: create multpoint features from the points for each time series group.
  2. NeighborFinder (1): send the multipoints to the Base port, send the lines to Candidate port, to merge ID of the closest line to each multipoint. If the lines don't have unique ID attribute, use the Counter to add sequential number as a temporary ID to them beforehand.
  3. Deaggregator: deaggregate the mltipoints output from the Matched port. Here, all the points belonging to the same time series group would have the same line ID closest to the group.
  4. NeighborFinder (2): find the closest point on the closest line for each point, grouping by the line ID.

Hope this helps.


jugoslaviaa
Enthusiast
Forum|alt.badge.img+6
  • Author
  • Enthusiast
  • 89 replies
  • July 3, 2019

Thank you very much. It is very very helpful. May i ask how NeighborFinder identifies the closest line to multipoint? Does it take into account the middle points or average?

 


takashi
Celebrity
  • 7843 replies
  • July 3, 2019

Thank you very much. It is very very helpful. May i ask how NeighborFinder identifies the closest line to multipoint? Does it take into account the middle points or average?

 

I think that the NeighborFinder identifies the closest line to a multipoint based on the distance between a candidate line and a point belonging to the multipoint closest to the line.


Forum|alt.badge.img+2
  • 1891 replies
  • July 5, 2019

@jugoslaviaa or try LineBuilder to create a line from each time series and then Matcher (2019) that has the new Fréchet distance algorithm.