LabelPointReplacer
用标签点替换要素的几何图形。
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.
Input Ports
Input features must have the correct geometry: point, line or area.
输出端口
The features with the replaced geometry are output via this port.
Invalid features are output via this port.
Rejected features will have anfme_rejection_code具有以下值之一的属性:EXTRA_FEATURE,INVALID_GEOMETRY_TYPE,INVALID_GEOMETRY_VERTICES.
Results
- 如果特征已经是一个点,那么它只需在原始位置转换为文本特征。
- 如果要素是直线,则会在直线的中点处将其转换为点文字要素,并进行平行于直线的旋转。
- 如果特征是区域特征,则生成的点位于特征内部的某个位置(以及区域中任何孔的外部)。
参数
要添加到几何图形的标签。
标签高度以地面单位度量,可以作为数字输入,也可以通过从下拉列表中选择属性名称从要素属性的值中获取。
The label is rotated to prevent it from appearing upside down.
例子
Editing Transformer Parameters
使用一组菜单选项,变压器参数s 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在适用参数旁边。有关详细信息,请参阅Transformer Parameter Menu Options.
Transformer Categories
Related Transformers
To generate a point that will be used as a centroid for polygons, use an中心点替换器.This saves you the overhead of having a text object.
FME许可级别
FME专业版及以上
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心.
标签Keywords: LabelPointCreator TextReplacer