CenterPointExtractor
Extracts and outputs the specified x, y, and z attributes of a feature's point that is either in the center of the feature's bounding box, at the center of mass of the feature, or somewhere guaranteed to be inside the feature's area.
Output Port
This port outputs the result of the extracted point in the specified x, y, and z attributes.
This port outputs null geometry features, and when Point Extraction Mode is Any Inside Point, all non-area geometry features.
Note: Feature order may change in relation to other output ports. Feature order per port is maintained.
Parameters
Center of Bounding Box: Extracts the point that is in the center of the feature's bounding box into the specified x, y, and z attributes. Depending on the feature’s shape, the resulting point may be far outside of the original feature.
Center of Gravity: Extracts the point at the feature's center of mass into the specified x, y, and z attributes. Depending on the feature’s shape, the resulting point may be far outside of the original feature.
Any Inside Point: Extracts a point that is guaranteed to be inside the feature's area into the specified x, y, and z attributes.
Example
The following illustration shows the result when the Point Extraction Mode is Center of Gravity. The transformer calculates the exact distribution of portions of a shape; therefore, some points can actually appear outside a feature.
Usage Notes
If the Point Extraction Mode is Center of Bounding Box or Center of Gravity, depending on the feature's shape, the resulting point may be far outside of the original feature.
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 Community
Search for samples and information about this transformer on the FME Community.
Keywords: MBR "minimum bounding rectangle" CenterPointCreator CentrePointCreator CentrePointReplacer