Skip to main content
Solved

polygon intersect lines

  • February 14, 2019
  • 3 replies
  • 25 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.

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

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • 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+20
  • Safer
  • 3719 replies
  • 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.

@irene2018 Or use a SpatialFilter or SpatialRelator


Forum|alt.badge.img
  • Author
  • 19 replies
  • February 20, 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.

This has worked ,thanks!