Skip to main content

Hi guys

I am looking to create a buffer where I have a rectangle.

I would like the north and south to have a scale range of 1km and the east and west to have 2km. Then to have it all in one shape to show the buffer area.

What would the best way to do this with the buffer tool in fme. I have seen something with python which is possible but is there anything similar in FME.

Thanks

I'm supposing these buffers are always rectangles with strictly horizontal and vertical sides. Then you could create a 1 km buffer, clone it twice with a Cloner and use Offsetter to move the clones 1 km respectively east and west. You now have three rectangles that are overlapping. Finish by using a Dissolver to merge the three into one, keeping their aggregated footprint as your new buffer feature.


I'm not sure the buffer would be able to do that.

 

 

What I would try is:
  1. Split your polygon into a line for each side.
  2. Identify the top/bottom sides vs the left/right sides (if Δx > Δy it's a top/bottom, if Δy > Δx it's a left/right)
  3. OffsetCurveGenerator (Right only, either 1 or 2km depending of which side)
  4. LineExtender (2km)
  5. Intersector
  6. AreaBuilder

 


Here is an option

bufferrect.fmw


Reply