Skip to main content
Solved

Detect line relationship line

  • January 9, 2019
  • 5 replies
  • 10 views

piotrek6116
Contributor
Forum|alt.badge.img+1

Hello to all forum members,

 

I am looking for lines that have a close relationship between each other ~10 [cm].

 

The result is a blue line.

 

pictures: a), b), c) it's results from the workflow:

 

pictures: d), e) found a similar solution only the lines have a real relationship, they intersect.

Transformer: LineOnLineOverlayer and finall LengthCalculator so it's easy to detect.

 

I tested: NeighborFinder, LineDevider, Snipper, SpatialRelator

Thank you for your help.

Best answer by piotrek6116

Thanks for answer from members,

but the answers do not match my assumption.

 

I've built a new one workflow 'test' but no exactly what i want.

Input data

Results the workflow 'test' - it's the big red point, that is place when blue line should touch each other around 0.02 cm.

 

I am looking for a result only green line. Image edited in "paint".

I exclude the relationship on the dots from the example

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.

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3702 replies
  • January 9, 2019

If I understand you correctly you do want results a, b and c, but not d and e. A SpatialFilter can be used to detect the intersects.

Alternatively, since the AnchoredSnapper changes geometry, you might want to consider using the NeighborFinder instead.


david_r
Celebrity
  • 8394 replies
  • January 9, 2019
I agree with @redgeographics, you could also consider using the regular Snapper set to end point snapping and a tolerance of 10cm.

Regarding the NeighborFinder, you may want to consider only using the start/end vertices, you can use the CoordinateExtractor/VertexCreator combination for this.


piotrek6116
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 6 replies
  • Best Answer
  • January 25, 2019

Thanks for answer from members,

but the answers do not match my assumption.

 

I've built a new one workflow 'test' but no exactly what i want.

Input data

Results the workflow 'test' - it's the big red point, that is place when blue line should touch each other around 0.02 cm.

 

I am looking for a result only green line. Image edited in "paint".

I exclude the relationship on the dots from the example


redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3702 replies
  • January 25, 2019

Thanks for answer from members,

but the answers do not match my assumption.

 

I've built a new one workflow 'test' but no exactly what i want.

Input data

Results the workflow 'test' - it's the big red point, that is place when blue line should touch each other around 0.02 cm.

 

I am looking for a result only green line. Image edited in "paint".

I exclude the relationship on the dots from the example

Do give the NeighborFinder a try, from the _closest_candidate_x, _closest_candidate_y, _closest_base_x and _closest_base_y attributes that green line can be reconstructed.


piotrek6116
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • 6 replies
  • January 28, 2019

Do give the NeighborFinder a try, from the _closest_candidate_x, _closest_candidate_y, _closest_base_x and _closest_base_y attributes that green line can be reconstructed.

Yes that's works. Final results present VertexCreator, thanks for help.