Skip to main content
Question

I try to intersect a line with 3d coordinates and a polygon with 3d coordinates. How can i calculate the intersection point (the two screenshots may help)? Are there some properties that i have to use? Thank you for help!


I try to intersect a line with 3d coordinates and a polygon with 3d coordinates. How can i calculate the intersection point (the two screenshots may help)? Are there some properties that i have to use? Thank you for help!

5 replies

dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • April 10, 2023

I would try the Clipper transformer. Polygons would the Clipper, lines would be your Clippee.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • April 10, 2023

Take a look at the 3DLineOnDTMIntersector custom transformer from the Hub.

Line to LINES port and polygon to POINTS/LINES port.3DLineOnDTMIntersector


  • Author
  • April 10, 2023

Thank you @caracadrian​ first of all.

This transformer worked because im obvisously able to select the intersection point.

But i'm not able to get the coordinates of this point.

As same as in your screenshot the elevation column is <missing>


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • April 10, 2023

Use CoordinateExtractor.

If you don't want to bother exploding lists or exposing attributes set it to Specify Coordinate and leave the default 0 as index.


  • Author
  • April 10, 2023

Thank you again. It worked.

Interim i got another solution: Set a new attribute and in column value i choose FME Feature Functions and there are x,y,z coordinates. I think this is the same function but of course your way is smarter :) @caracadrian​ 


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