Skip to main content
Question

CommonSegmentFinder with lines and polygons created from the lines

  • August 12, 2019
  • 3 replies
  • 89 views

Hi,

I am having an issue with the CommonSegmentFinder transformer. I create polygons from the lines with the AreaBuilder. Then I try to identify the lines that where used to create some of the polygons with the CommonSegmentFinder. It mostly work, but a few lines are not identified. How is it possible when the lines were used to create the polygons in the first place?

Thanks!

 

 

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.

3 replies

takashi
Celebrity
  • 7843 replies
  • August 12, 2019

Hi @svoyer, the CommonSegmentFinder seems to route a Candidate line to the Overlap port only if all of its vertices match vertices of a Base geometry. So some original lines split by the LineOnLineOverlayer may not be considered as "common segments" even if they overlaps polygon boundary. I think it's the reason why some lines weren't identified.

If your goal is to find all the lines which overlap polygon boundary, the SpatialRelator might be better, as in:

 


  • Author
  • 2 replies
  • August 13, 2019

Hi @svoyer, the CommonSegmentFinder seems to route a Candidate line to the Overlap port only if all of its vertices match vertices of a Base geometry. So some original lines split by the LineOnLineOverlayer may not be considered as "common segments" even if they overlaps polygon boundary. I think it's the reason why some lines weren't identified.

If your goal is to find all the lines which overlap polygon boundary, the SpatialRelator might be better, as in:

 

Thank you for your answer @takashi. I thought the CommonSegmentFinder would work even if only a part of the lines overlap because it "tests to see which of the Candidate features have even one line segment in common with any Base feature". I tried your method, I tought it should work too, but only 874 lines are identified instead of 1390.

 


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • August 17, 2019

Thank you for your answer @takashi. I thought the CommonSegmentFinder would work even if only a part of the lines overlap because it "tests to see which of the Candidate features have even one line segment in common with any Base feature". I tried your method, I tought it should work too, but only 874 lines are identified instead of 1390.

 

Hi @svoyer I'd have to see your data to understand your latest problem. Can you send us your data and workspace via https://www.safe.com/support/report-a-problem/ ?