Skip to main content
Question

CommonSegmentFinder with lines and polygons created from the lines


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!

 

 

3 replies

takashi
Influencer
  • 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
  • August 13, 2019
takashi wrote:

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+19
  • Safer
  • August 17, 2019
svoyer wrote:

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/ ?


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