Skip to main content
Solved

polygon intersect lines

  • February 14, 2019
  • 3 replies
  • 16 views

Forum|alt.badge.img

Hi,

I have 2 layers one representing lines and the other layer is polygons.I need to create a point at the center of the polygon when a line intersect a polygon,can this be possible. thanks for your help.

Best answer by erik_jan

This would be a possible solution:

Use the LineonAreaOverlayer.

Followed by a Tester on the Area output port (test for _overlaps > 0).

For those Areas that pass the test use the CenterPointReplacer to create the center point.

Output both the original areas and the center points to get the needed result.

Hope this helps.

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

3 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • February 14, 2019

This would be a possible solution:

Use the LineonAreaOverlayer.

Followed by a Tester on the Area output port (test for _overlaps > 0).

For those Areas that pass the test use the CenterPointReplacer to create the center point.

Output both the original areas and the center points to get the needed result.

Hope this helps.


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • February 14, 2019
erik_jan wrote:

This would be a possible solution:

Use the LineonAreaOverlayer.

Followed by a Tester on the Area output port (test for _overlaps > 0).

For those Areas that pass the test use the CenterPointReplacer to create the center point.

Output both the original areas and the center points to get the needed result.

Hope this helps.

@irene2018 Or use a SpatialFilter or SpatialRelator


Forum|alt.badge.img
  • Author
  • February 20, 2019
erik_jan wrote:

This would be a possible solution:

Use the LineonAreaOverlayer.

Followed by a Tester on the Area output port (test for _overlaps > 0).

For those Areas that pass the test use the CenterPointReplacer to create the center point.

Output both the original areas and the center points to get the needed result.

Hope this helps.

This has worked ,thanks!


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