你在这里: Popular Formats > 谷歌KML Reader / Writer > 作家管道

作家管道

作家工厂管道为用户提供了改变KML作家的功能处理的机会,并降低翻译复杂性。管道目前用于提供KML作家的矢量块块和光栅图像金色的功能,但也可以用于其他目的。

To use the pipeline functionality first enable the pipeline, and then specify the pipeline file. If no pipeline file is specified, a default pipeline file from $(FME_HOME)/plugins/kml21 will be used.

管道文件可以位于$(fme_home)/ plugins / kml21或$(fme_mf_dir)中。此外,还可以指定对管道文件的完整路径。

向量(Placemark)

The vector pipeline processes features with vector geometry (typically Placemarks). The default pipeline, fmeregionator.fmi performs regionation.

笔记:The default regionator pipeline requires Python.

Google Earth has difficulty opening and displaying large KML datasets that are contained in a single KML file. Regionation provides a mechanism for dividing vector data into many regions, each of which may contain sub-regions. Each region is contained within a separate kml file; Region and NetworkLink elements are used to instruct Google Earth when to load each set of vector data.

解构背后的基本思想是用户应该首先呈现最重要的功能,并且当用户缩小到更低的高度时,显示不太重要的功能。该区域管道使用相对权重来确定首先显示哪些功能。

以下格式属性用于配置区域管道管线。有关进一步的解释,请参阅下面的部分。

KML Format Attribute

Notes

kml_region_weight

指定特征相对重量的浮点值。如果不存在,则会应用启发式来计算特征的权重。

kml_region_group.

The name of a group of features that will be regionated together. By default, all features will be regionated together.

kml_features_per_region

每个区域中包含的功能数量。默认值为16。

kml_minimum_lod.

每个地区的最小LOD。默认值为256。

Relative Weights

在区域化过程中,所有输入功能都根据其重量进行排序。首先显示具有最高重量的功能。重要的是要理解要素权重仅确定相对显示顺序;它不保证物品将在一定的海拔地区显示。

一个功能使用kml_可以指定的重量region_weight format attribute. If no weight is specified, the following heuristic will be used to create a weight for each feature.

Feature Geometry

重量计算

Point

Constant value of 1.0

线

@length()* 1000

地区(和所有其他人)

@Area(1000)

Level Of Detail

每个区域被定义为象限。Google地球通过比较将Google地球中的区域所需的像素数进行比较到特定的最低细节级别(LOD)规范所需的像素数量来确定每个区域是否显示每个区域。默认情况下,区域管道流水线使用256的最小速度,可以使用kml_minimum_lod格式属性覆盖。值得注意的是,最大LOD始终设置为-1,这意味着一旦实现最小LOD,该区域将始终打开。

Features per Quadrant

每个区域都可以包含一定数量的功能。当区域被激活时,将显示该区域中的所有功能。默认情况下,每个区域最多包含16个功能,但这可以使用kml_features_per_region格式属性覆盖。

Region Groups

默认情况下,写入写入器的所有向量功能都将突出。通过使用KML_REGION_GROUP格式属性,可以将功能分配给分隔域的组。

笔记:The regionation pipeline assumes that input features are sorted according to their individual region group. When the pipeline encounters a feature with a groupname that differs from the current group name, the current group will be completed, and regionation of a new group will begin.

Raster (GroundOverlay)

The raster pipeline processes features with raster geometry (typically GroundOverlays). The default pipeline, fmegroundoverlaypyramider.fmi performs image pyramiding.

笔记:The default pipeline requires Python. An alternative pipeline, fmegroundoverlaypyramider_nopython.fmi, is also available.

每个功能将在输入到管道之前添加kml_images_folder格式属性。此格式属性包含DataSet的图像'文件夹的位置。

光栅(PhotoOverlay)

栅格管道流程具有保源功能类型的功能。没有提供默认管道。

每个功能将在输入到管道之前添加kml_images_folder格式属性。此格式属性包含DataSet的图像'文件夹的位置。