Skip to main content

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

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?


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.


@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.


@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.


@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)


@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


Reply