BoundingBoxReplacer
Replaces the geometry of the feature with either its two-dimensional bounding box or its two-dimensional minimum oriented bounding box.
If a feature’s bounding box has zero area, it will become a line or a point. If the feature was originally 3D, it will be set to 2D upon leaving, and the z values will be ignored and dropped.
Parameters
Choose Bounding Box (which means the axis-aligned or rectilinear bounding box) or Oriented Bounding Box
Optionally, you can calculate the lengths of the shorter and longer sides of the chosen bounding box. They will appear as attributes in the Box output port.
Example
Related Transformers
- To accumulate the bounding box of a number of features, use the BoundingBoxAccumulator.
- To retrieve the bounds of a feature into attributes, use the BoundsExtractor.
- To replace the geometry of a feature with a box whose values come from attributes, use the 2DBoxReplacer.
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.
Tags Keywords: MBR "minimum bounding rectangle" neatline "envelope oriented" "bounding box"