FME Transformers: 2024.1

Categories
Cartography and Reports
Geometries

LabelPointReplacer

Replaces the geometry of the feature with a label point.

The insertion point of the text is guaranteed to be inside (in case of polygons) or on (lines and points) the original object. Note that since the text itself may be larger than an input area feature, the bounds of the label may exceed the bounds of the area.

  • If the feature was already a point, it is simply turned into a text feature at the original location.
  • If the feature was a line, it is turned into a point text feature at the midpoint of the line, with a rotation parallel to the line.
  • If the feature was an area feature, the resulting point is somewhere in the interior of the feature (and outside of any holes in the area).

Example

Usage Notes

  • To generate a point that will be used as a centroid for polygons, use an CenterPointReplacer. This saves you the overhead of having a text object.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.

Search for all results about the LabelPointReplacer on the FME Community.

Keywords: LabelPointCreator TextReplacer