KMLStyler.
Creates a common style for a group of features destined for the OGCKML writer.
Parameters
This parameter specifies whether the first feature through the transformer defines the common style that will be used for all features that pass through the transformer, or whether each feature can supply a unique style. Unique styles per feature create larger output files but allow for different settings, such as color, per feature.
Color
此参数指定用于在SET颜色中呈现该功能的功能的PEN颜色。笔颜色确定线条和区域边界的颜色。要编辑此参数,请单击文本字段右侧的“浏览”按钮。
This parameter specifies the fill color for an area geometry on a feature used to render the interior feature in the set color. To edit this parameter, click the browse button to the right of the text field.
不透明度指定透明度of the pen color of the feature. A value of 1.0 is fully opaque, and 0.0 is completely transparent.
填充opacity指定功能填充颜色的不透明度。值为1.0是完全不透明的,0.0完全透明。
Icon
icon名称指定从图标选择器中选择的图标的名称,或有效图像文件的文件名/ URL。
This parameter specifies the scale of the icon.
The scale is a multiplying factor, where 1.0 is unscaled. The lower scaling bound is 0.0, and there is no upper bound. If the value is exactly 0.0, Google Earth will not display the icon. The actual display size of the icon will vary according to how each Google Earth renders the dataset at various altitudes. This value has no units.
This parameter allows the specification of a color that Google Earth will apply to the icon when it is displayed. This works best with white icons. Results may vary for icons which are already colored.
此参数指定图标的不透明度。值为1.0完全不透明,而值为0.0完全透明。
Line Style
线宽指定区域几何形状的线几何宽度和边界。
指定先前参数值的单位。如果参数的值为“像素”,则线几何形状将是所有缩放级别的恒定宽度。结果,当视图放大时,相对于视图缩小时,它会出现较窄的。如果值为“米”,则线宽相对于地面将是恒定的。因此,当视图放大时,它将更宽,并且在缩小视图时更窄。
如果此参数设置为“是”,则KML功能的名称(从kml_name格式属性占用)将显示为沿线长度的标签。
Label Style
Label Style Scale specifies a unitless scaling factor that the KML Viewer applies to the default size of the label when rendered. Labels are rendered by KML Viewers, such as Google Earth, when the feature has both a KML name and a point geometry. The KML Writer will convert text features to KML points that have a name property. It is not possible to specify label size in terms of absolute units.
This parameter specifies the color in which the feature name will be displayed. This parameter is optional. If no value is given, the feature name will be displayed in white text. The color value may be selected using the button next to the field, or may be manually entered. The color must be specified as
此参数指定标签的透明度。值为1.0完全不透明,而值为0.0完全透明。
Example
This screen capture shows a polygon that has had its color and fill color set by the KMLStyler.
Additional References
For more information regarding KML styling:
- See the FME OGCKML Writer chapter in theFME Readers and Writersmanual (in Workbench, select Help > FME Readers and Writers Reference)
- See the KML documentation:http://developers.google.com/kml/documentation/kml_tut.
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, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.
Transformer Categories
搜索FME知识中心
搜索有关此变压器的样本和信息FME Knowledge Center.
Tags关键词:“谷歌地球”KML