One-Sided Area Buffer Workspace
From fmepedia
| This page contains an example FME Workspace created by an fmepedia user. See the attached files list at the foot of this page for the zip file containing this workspace. |
Scenario
The regular buffer feature in FME produces a left or right side buffer, but only as a line feature.
This workspace creates a left or right 'butt' style buffer as a polygon or area feature.
Output

Above: The usual style of buffer; rounded and on both sides of the source feature.

Above: The style of buffer created by this workspace; butt-ended and on one side only of the source feature.
Method
A regular buffer is created and split in two. The unwanted part is discarded and the remaining parts pieced back together as a polygon feature.
Because the Intersector transformer is used to split the original buffer there would be problems if the existing line features or the intended buffers overlapped each other at all.
Happily, because all of the transformers used in this workspace have a group-by option this issue is avoided by applying a Counter transformer to the data and grouping by the count attribute.

Above: The workspace. Note the use of the Counter to create an ID which is used in the Intersector, CommonSegmentFinder and PolygonBuilder transformers.
