Skip to main content
Solved

I have 1 line and 1 polygon layer, have to extract all the intersection points and create a point layer with the attributes of line and polygon present on it, how it can be done?


bhavyagandhi
Contributor
Forum|alt.badge.img+1
I have 1 line and 1 polygon layer, have to extract all the intersection points and create a point layer with the attributes of line and polygon present on it, how it can be done?

Best answer by thdrg

@bhavyagandhi​ @virtualcitymatt​ if you only want the intersection points that are overlapping both of your 2 layers, you have be aware that if the line layer (or the polygon one) have some self intersection, the lineOnlineOverlayer will give you also the intersections point for this unique layer. For example, if you have a road network as a line layer, the transformer will return you all the intersection points for the roads crossing... like this :

1It's the same thing for your polygon layer. So you have to manage/clean your intersection point after. Personally, here is what I'd do :

2 Hope it helps!

 

Théo Drogo

GIS consultant​ @consortech (Partner)​ 

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

4 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

One process comes to mind for me

Use a GeometryCoercer on the polygons to turn them into lines. Then you can use a LineOnLineOverlayer. This should give you the intersection points. The LineOnLineOverlayer will also let you pick up the attributes.​


thdrg
Contributor
Forum|alt.badge.img+10
  • Contributor
  • Best Answer
  • August 13, 2021

@bhavyagandhi​ @virtualcitymatt​ if you only want the intersection points that are overlapping both of your 2 layers, you have be aware that if the line layer (or the polygon one) have some self intersection, the lineOnlineOverlayer will give you also the intersections point for this unique layer. For example, if you have a road network as a line layer, the transformer will return you all the intersection points for the roads crossing... like this :

1It's the same thing for your polygon layer. So you have to manage/clean your intersection point after. Personally, here is what I'd do :

2 Hope it helps!

 

Théo Drogo

GIS consultant​ @consortech (Partner)​ 


bhavyagandhi
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • August 19, 2021
theodrogo wrote:

@bhavyagandhi​ @virtualcitymatt​ if you only want the intersection points that are overlapping both of your 2 layers, you have be aware that if the line layer (or the polygon one) have some self intersection, the lineOnlineOverlayer will give you also the intersections point for this unique layer. For example, if you have a road network as a line layer, the transformer will return you all the intersection points for the roads crossing... like this :

1It's the same thing for your polygon layer. So you have to manage/clean your intersection point after. Personally, here is what I'd do :

2 Hope it helps!

 

Théo Drogo

GIS consultant​ @consortech (Partner)​ 

I was actually about to ask the same thing about the problem of self-intersection points, Thanks a lot for answering and clarifying.


thdrg
Contributor
Forum|alt.badge.img+10
  • Contributor
  • August 19, 2021
bhavyagandhi wrote:

I was actually about to ask the same thing about the problem of self-intersection points, Thanks a lot for answering and clarifying.

@bhavyagandhi​ Glad to see it helped you! 🙂


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