Skip to main content
Solved

Detect line relationship line


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

View original
Did this help you find an answer to your question?

5 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

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
  • 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
  • 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+50
piotrek6116 wrote:

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
  • January 28, 2019
redgeographics wrote:

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.


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