作者模块

The GTI GTViewer Writer module will produce a GTViewer Unextracted Dataset including a.GTM文件和在GTViewer中打开数据集所需的所有组件。提取文件(.GTX) can be made from the Unextracted data (.GTM) using GTViewer or GTData utilities (GTPack or GTExtract). Also,.GTGgraphics files are created as components referenced by the.GTM文件,可以独立使用。

The following table shows format properties for the Writer module that can be used to guide the conversion process. These properties can be used with any element type.

Property

FME Property Name

Description

Value Range

Style Name
Directive

gti_stylename.

Identifies the name of a style to assign to an element. This is probably the most important of the directive attributes because it can be used to create a template style map and style definition file for the converted data and will also guide the creation of the filter files based on the style names.

String value

Color Value
Directive

gti_colorvalue.

Identifies the color value to assign to an element. If this color is not in the current color table, it will be added and a color ID will be associated with the color. This property is different from gti_colorID which is the color ID (0 to 255) in the color table.

,, component values should be from 0 to 255.

Category ID

gti_categoryId

Unsigned Long value

By default, all features are written to category ID 2 and all overview map features are written to category ID 1 (the data bounding rectangle by default). You can specify the category ID to be any number you want and can have as many as you want (within reason). Valid category ID values are any unsigned long value except 0. A separate .GTG file is create for each unique category Id used.

Filter Group Name

gti_filterGroupName

String value

stryenamemap_bycat和styleNamemap_global筛​​选模式支持此属性。它将定义该功能将放置的过滤器组。它可以与gti_filtername属性一起使用。

筛选名称

gti_filtername.

String value

stryenamemap_bycat和styleNamemap_global筛​​选模式支持此属性。This entry will define the name of the Filter entry (id) used by the feature. It can be used with gti_filterGroupName.

特征名称

gti_featureName

String value

This attribute can be used to change the Feature name. If it is not specified, the feature name will be the FME Feature Type for the feature.

With the Writer module, the following rules are observed:

  • A circle is written instead of an ellipse if the primary and secondary axes are the same.
  • Ifgti_colorIdgti_colorvalue.are not defined,FME_COLOR.用来。
  • Thegti_colorId财产优先于gti_colorvalue..
  • Ifgti_filterid.gti_stylename.are not defined,gti_stylename.property is automatically assigned a unique values based onfme_feature_type..
  • Thegti_filterid.财产优先于gti_stylename..
  • Thegti_stylename.属性将生成一个唯一的gti_filterid.for each unique style name provided.
  • Use the StringConcatenator to creategti_stylename.基于的值fme_feature_type.和any other feature attribute that could be used to drive symbology. An empty style rule will be created for each uniquegti_stylename.稍后可以使用GTViewer样式管理器稍后定义使用(以及这些样式规则)。
  • 每个类别最多可以使用2500个过滤器ID(0到2499)。

WEME工作空间中使用以下参数:

范围

Description

Value Range

目的地GTI文件

The Destination file is a location to a .GTM file that will be created. This file should generally be placed in a new subfolder because all of the component files will be generated in the same folder as the specified .GTM file.

Valid file path.

Coordinate Factor X1,

Coordinate Factor X2,

坐标因子x3,

Coordinate Factor Y1,

Coordinate Factor Y2,

Coordinate Factor Y3,

The GTViewer data format always uses an unsigned 32-bit coordinate space. The coordinate factor parameters must be set so that the incoming data is correctly placed into this space. The following formulas are used to convert incoming data:

gtviewerx =(sourcex +

协调因子X1)*

协调因子X2 +

CoordFactorx3.

GTViewerY = ( SourceY +

CoordinateFactorY1) *

CoordinateFactorY2 +

协调因素3

It is very important to get these values correct or the data in GTViewer will wrap around the coordinate space or lose precision.

GTViewer将保留原来的坐标正无穷ormation by keeping track of the coordinate factors and applying them in reverse to compute the original coordinate values from the source data.

对于纬度/经度值,使用以下内容:x1 = 200,x2 = 1000000,x3 = 0,y1 = 200,y2 = 1000000,y3 = 0

对于其他投影,使乘法器(X2和Y2)足够大以保持您想要维护的精度量。这通常是100或1000,具体取决于源数据的单元。X1,X2,Y1和Y2用于保持阳性值。

More information is provided on setting the Coordinate Factor values in a later section.

重用颜色文件

If set to Yes, the color.txt will be loaded into memory and updated when new data is converted keeping the existing color ID’s static. If the color.txt file is not found or the parameter is set to No, then a new color file is created each time.

Yes or No

Background Color

使用此参数,颜色文件中的背景颜色可以设置为白色或黑色。如果要将其设置为Color.txt文件,则可以使用任何颜色。

白色或黑色

Filter Creation Mode

If set to enhanced, the filter files will be created the filter ID will be grouped according by the source feature type (all style variations will be under the feature group). If set to standard, the original filter file creation will be used. Each filter id generated will be under a single group called Features.

如果设置为styleTenameMap模式,则基于GTI_Stylename属性为每个元素创建样式定义ID。GTI_FilterName和GTI_FilterGroupName属性可用于设置过滤器信息(使用这些模式从样式规则中无限制地)。Bycat模式将为每个类别创建样式名称映射,全局模式将为所有类别使用一个样式名称映射。

Enhanced, Standard, StyleNameMap_ByCat, or StyleNameMap_Global

在stylename中使用要素名称

如果设置为是,则会自动向GTI_Stylename字段预先添加到GTI_Stylename字段中,您不必使用Contenator变压器来为样式前缀。

如果您只使用一个属性来驱动sysbology,则此选项非常有用,并且希望将功能名称添加到。如果设置为否,如果未设置GTI_Stylename字段,则样式名称将是要素名称;否则,将设置为GTI_Stylename值。

Yes or No