Skip to main content
Question

Creating a 3D Line with slope


I need help trying to create 3D lines with slopes. I do have 2 points to create a line but 2 points have different elevation. the VertexCreator and LineBuilder use only one elevation to the whole line. Is it any way to create this line?

 

Jairo Castillo

6 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • January 21, 2021

Hi @jaircasti Isn't there a Z Value parameter on your VertexCreator? Do you have two 3D coordinates or do you have only one coordinate and a slope and bearing to define the 2nd coordinate?


  • Author
  • January 21, 2021

Hi Dan. I have 2 coordinates per line. When I used VertexCreator seems the transformer used the first elevation and the line is horizontal you can see in the screenshot that I have gaps between lines in Z.


Forum|alt.badge.img+2
  • January 21, 2021

@jaircasti​  Both LineBuilder and VertexCreator preserve the Z value of the point. Which you use will depend on the structure of your data. Perhaps if you could attach a sample dataset the community could point you in the right direction.


  • Author
  • January 22, 2021
markatsafe wrote:

@jaircasti​  Both LineBuilder and VertexCreator preserve the Z value of the point. Which you use will depend on the structure of your data. Perhaps if you could attach a sample dataset the community could point you in the right direction.

Thanks Mark. Please find the sample dataset for the pipes.


Forum|alt.badge.img+2
  • January 22, 2021

@jaircasti​ Great - thanks for including the data. Your Z values are attributes on the line as attributes - UP_INVERT & DN_INVERT. Because you only have 2 point lines for your pipes the easiest way is to just rebuild the geometry using the VertexCreator:

workspaceIf you have lines with more than two points it'll be a little trickier.

I've attached an example workspace (FME 2020.2.2)


  • Author
  • January 25, 2021
markatsafe wrote:

@jaircasti​ Great - thanks for including the data. Your Z values are attributes on the line as attributes - UP_INVERT & DN_INVERT. Because you only have 2 point lines for your pipes the easiest way is to just rebuild the geometry using the VertexCreator:

workspaceIf you have lines with more than two points it'll be a little trickier.

I've attached an example workspace (FME 2020.2.2)

Thanks, Mark. The lines are connected and look good. The workbench makes sense now.

 

Jairo


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