多文本字符串
igds_type: IGDS-多文本
多文本字符串功能对应于一个IGDS文本节点(元素类型7),将一系列IGDS文本元素(元素类型17)分组在一起,其中每一个都打开了复杂位。此功能使用与文本节点相同的属性名,plus it has a feature attribute list of text string attributes.The list is calledigds_text_elements{#}
,where#starts at 0 and increments for each text element.The list's item names are identical to the text string features attributes.
提示:Tip: Multi-text strings can be used to group together text so that it will be manipulated as a single entity with MicroStation.
Multi-text features are point features,只有一个坐标。This coordinate is used when the text node is created.If the feature had no coordinates of its own,the text node is created with the coordinates of the first text string.The coordinates for each of the text strings are stored in the FME feature using the following attribute names.
属性名 |
Contents |
igds_文本_元素.x |
第个文本元素的X坐标。 Range:任何实数 Default:无违约 Reprojectable:Yes |
igds_text_elements{#}.y |
The y coordinate of the # th text element. Range:任何实数 Default:无违约 Reprojectable:Yes |
igds_text_elements{#}.z |
The z coordinate of the # th text element. Range:任何实数 Default:零 Reprojectable:Yes |
IGDS_串数 |
The number of text elements in the multi-text feature |
igds_split_multitext |
Is added to the feature with the value "yes" if splitting multi-text. Default:无违约 |
If a setting for a particular text element is not present in theigds_text_elements列表,then the setting specified for the previous text element will be used.If the first element does not have some settings specified,then the corresponding settings will be borrowed from the text node.
提示:Tip: When a multi-text string feature is reprojected,它的旋转和文本大小也会在新坐标系中自动调整为正确的。
For example,以下部分传输规范指定的FME功能将创建一个文本节点,后跟两个文本字符串,作为一个单一的复杂元素。
IGDS 32 igds_type igds_multi_text \igds_node_number 15 \ igds_font 31\ igds_rotation 0 \igds_text_size 40 \ igds_color 2\ igds_justification 1 \ igds_text_elements{0}.igds_font 33 \igds_text_elements{0}.igds_rotation 3.1 \ igds_text_elements{0}.igds_text_size 52 \ igds_text_elements{0}.igds_color 4 \ igds_text_elements{0}.igds_text_string Hello \igds_text_elements{0}.x 477556 \ igds_text_elements{0}.y 5360183 \ igds_text_elements{0}.z 20 \ igds_text_elements{1}.igds_text_string World \igds_text_elements{1}.x 47755 \ igds_text_elements{1}.y 5359177\ igds_text_elements{1}.z 20
Note that in this example,the justification code (1) used for the text node would be propagated to each of the text elements,but that the color used in the text node (2) would not be used in any of the text elements because the first one set the color to 4.
The in-memory snapshot of the FME feature created by the IGDS writer from this transfer specification is shown below.
Feature Type: 32 |
||
属性名 |
Value |
|
igds_type |
IGDS-多文本 |
|
igds_node_number |
15 |
|
IGDSX字体 |
三十一 |
|
IGDS-权重 |
1 |
|
IGDSL文本大小 |
四十 |
|
igds_color |
2 |
|
IGDS-旋转 |
零 |
|
igds_justification |
1 |
|
igds_text_elements{0}.igds_text_string |
Hello |
|
igds_text_elements{0}.igds_font |
33 |
|
igds_text_elements{0}.igds_rotation |
三点一 |
|
igds_文本_元素0.igds_对齐 |
1 |
|
igds_text_elements{0}.igds_text_size |
52 |
|
igds_文本_元素0.x |
四十七万七千五百五十六 |
|
igds_text_elements{0}.y |
536018 |
|
igds_text_elements{0}.z |
20 |
|
igds_文本_元素1.igds_文本_字符串 |
World |
|
igds_text_elements {1} .igds_font |
33 |
|
igds_文本_元素1.igds_旋转 |
三点一 |
|
igds_text_elements{1}.igds_justification |
1 |
|
igds_text_elements{1}.igds_text_size |
52 |
|
igds_text_elements{1}.x |
四十七万七千五百五十六 |
|
igds_text_elements{1}.y |
5359177 |
|
igds_text_elements{1}.z |
20 |
|
坐标:(47755360181,20) |