Skip to main content
Question

How to use find a single-matching 'end' point for each 'start' point?


matthewb
Contributor
Forum|alt.badge.img+9

I'm trying to clip out 'curves' from a polyline. I have a 2 layers, a polyline layer and a point layer. The point layer has a "point type" attribute that states if the point is "Tangent-to-Curve", i.e. the beginning of the curve, or "Curve-to-Tangent", i.e. the end of the curve. There is a one-to-one relationship between "Tangent-to-Curve" and "Curve-to-Tangent" points.

 

The issue is that the "Tangent-to-curve" and "curve-to-tangent" points don't have a shared id to link them.

 

My polyline layer does have measure values, which might be of use.

4 replies

takashi
Influencer
  • November 6, 2023

Hi @Matthew Boyter​ ,

Is the relationship between a polyline and pair(s) of "Tangent-to-Curve" (TC) and "Curve-to-Tangent" (CT) 1:N?

If it was 1:N, could the resulting clipped curves from the same polyline be overlap?

Is the direction of a polyline and the direction from TC to CT on the line the same? Or could it be opposite?


matthewb
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • November 6, 2023

1 polyline can have many TC:CT pairs, but the pairs won't overlap. A TC:CT pair will always occur before the next pair. I have measure values on the polyline, and measure values for each TC or CT point. I'm not sure if that is helpful, but it might be. The direction of the TC:CT can be the same or opposite of the polyline.


takashi
Influencer
  • November 7, 2023

Thank you for clarification. It's helpful to understand conditions and requirements.

I found a solution but the workflow is a bit complex to explain with words, so have attached a workspace example describing the solution. Please see the attachment.


matthewb
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • November 7, 2023
takashi wrote:

Thank you for clarification. It's helpful to understand conditions and requirements.

I found a solution but the workflow is a bit complex to explain with words, so have attached a workspace example describing the solution. Please see the attachment.

Hi, I did not have time to test this today, but hope to do it soon. Thank you so much for your help. I will reply back once I have an opportunity to test this.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings