Skip to main content
Question

Create Line Buffer to receive Polygon with z-coordinates


aharport
Contributor
Forum|alt.badge.img+4

291 / 5000

 

 

Übersetzungsergebnisse

I'm looking for a transformer with which I can create a buffer around a line. This buffer should have a defined width. The line has z-coordinates.

At the end I would like to continue using the buffer polygon that was created and the polygon should receive the z-coordinates of the line.

 

14 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+35

What's the use case here? Do you have something you could use to drape a normal 2D polygon over? For example, Road line > buffer to polygon, drape polygon over terrain? Or is that workflow not an option?


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

These are protective tubes (lines), which are now to be displayed as protective tube polygons with a fixed width. The z-coordinates should be retained.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
aharport wrote:

These are protective tubes (lines), which are now to be displayed as protective tube polygons with a fixed width. The z-coordinates should be retained.

Ahh the bufferer here should work to create pipes/tubes. There is an option for a 'solid' buffer type.

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/bufferer.htm?highlight=Solid

 


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

Thanks, but I don't need any geometrical solids. I only need a 2D polygon area with the z-coordinates of the line ends.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • November 1, 2021

So you're hoping to end up with something like this?

image 

How complex are your lines?


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

Exactly

 


virtualcitymatt
Celebrity
Forum|alt.badge.img+35

Here's something which should work for polylines but also single line geometries

 

It seems overly complicated, but the idea is to just find the line which is perpendicular to the line/pipe sections and then use an offsetter + extruder to create a new 3D surface. You can then get back to the polygon.

 


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
virtualcitymatt wrote:

Here's something which should work for polylines but also single line geometries

 

It seems overly complicated, but the idea is to just find the line which is perpendicular to the line/pipe sections and then use an offsetter + extruder to create a new 3D surface. You can then get back to the polygon.

 

imagePerhaps a little over complicated but should be pretty robust


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

Thank you. Unfortunately, only polylines with support points can be transformed. Polygons cannot be created from simple lines with only a start and end point.


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
aharport wrote:

Thank you. Unfortunately, only polylines with support points can be transformed. Polygons cannot be created from simple lines with only a start and end point.

Can you explain a little more what you mean? do you mean this process doesn't give you what you want? Can you try and modify it to make it work for your data?


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

I'm sorry, I don't know how to describe it better. Lines without vertices are rejected by the Chopper Transformer and cannot be written. My source data is in dgn format.


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

Should I send you a sample file?


virtualcitymatt
Celebrity
Forum|alt.badge.img+35
aharport wrote:

I'm sorry, I don't know how to describe it better. Lines without vertices are rejected by the Chopper Transformer and cannot be written. My source data is in dgn format.

Ahh then you should just be able to remove the Chopper - this was just put in in case they we not simple lines. The process should still work. You can also then remove the aggregator at the end.


aharport
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 1, 2021

I think it works now. I connected the Untouched output from the Chopper Transformer to the GeomtryExtractor. I have to test it thoroughly again tomorrow. Thanks very much :-)


Reply


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