GRD Attributes

The following table lists all common GRD attributes returned on all features produced by the FME reader. If these attributes are present on any feature written out to GRD, they will be used to set the appropriate values in the output file.

Field Name

Description

grd_vector_type

This is the type of vector. Maximum size is 10 characters. When reading GRD files, the value is one of the following:

POINT, LINE, PLINE, RECT, CIRCLE, ELLIPSE, ARC, INSERT, TEXT, INK, or MS-PLINE

grd_pen_width_type

This is the type of pen width used to plot the vector. Maximum size is 10 characters. The default is 0. The values are associated with the following types:

0 = USE LAYER

1 = HAIRLINE

2 = VIRTUAL

3 = PIXEL

grd_pen_width

This is the width of the pen used to plot the vector. This value is interpreted differently depending on the pen width type. The default is 1.

Range: Any real number.

grd_pen_color

This is the color of the pen used to plot the vector. Refer to the information under the heading Colors for a description of each color. The default is 0 (black).

Range: 0-18

grd_brush_color

This is the color of the brush used to plot the vector. Refer to the information under the heading Colors for a description of each color. Note that color 16 is TRANSPARENT. The default is 0 (black).

Range: 0-18

grd_brush_type

This is the type of brush used for this vector. The default is 0 (solid). The values are associated with the following types:

0 = SOLID

1 = DIAGONAL #1

2 = CROSS

3 = DIAGONAL COORD

4 = DIAGONAL #2

5 = HORIZONTAL

6 = VERTICAL

7 = USE LAYER'S BRUSH TYPE

8 = USE BLOCK'S BRUSH TYPE

Range: 0-8

grd_reserved

Boolean flag indicating whether the Reserved bit on this vector is set. The default is False.

Range: True | False

grd_added

Boolean flag indicating whether the IsAdded bit on this vector is set. The default is False.

Range: True | False

grd_has_extra_data

Boolean flag indicating whether the HasExtraData bit on this vector is set. The default is False.

Range: True | False

grd_visible

Boolean flag indicating if the IsVisible bit on this vector is set. The default is True.

Range: True | False

grd_selected

Boolean flag indicating whether the IsSelected bit on this vector is set. Note that this setting is unreliable within the FieldNotes application. The default is False.

Range: True | False

grd_changed

Boolean flag indicating if the IsChanged bit on this vector is set. The default is False.

Range: True | False

grd_has_annotation

Boolean flag indicating if the HasAnnotation bit on this vector is set. The default is False.

Range: True | False

grd_vector_handle

This integer is the vector handle. The default is 0.

Range: 0 - (2^33-1)

grd_annotation_string

This string holds the annotation for the vector. Maximum size is 254 characters. There is no annotation by default.

grd_annotation_x

grd_annotation_y

grd_annotation_z

This is the location of the annotation for the vector. The defaults are all zero.

Range: Any real number.

grd_linetype_name

This is the name of the linetype used to display the vector. The linetype must be defined in the mapping file or the template file being used. The default linetype is to use the layer’s linetype. Maximum size is 50 characters.

grd_database_key

This is a key string that links the vector to a database. The format of, and relationship between, the database and the feature is beyond the scope of the GRD reader or writer. Maximum size is 254 characters.

grd_layers_pen_width_type

When reading GRD files, this boolean flag indicates whether the pen width was taken from the layer or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the layer’s pen width or specifically set its own. The default is False.

Range: True | False

grd_layers_pen_color

When reading GRD files, this boolean flag indicates whether the pen color was taken from the layer or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the layer’s pen color or specifically set its own. The default is False.

Range: True | False

grd_blocks_pen_color

When reading GRD files, this boolean flag indicates if the pen color was taken from the block or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates whether the feature should use the block’s pen color or specifically set its own. The default is False.

Range: True | False

grd_layers_brush_color

When reading GRD files, this boolean flag indicates if the brush color was taken from the layer or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the layer’s brush color or specifically set its own. The default is False.

Range: True | False

grd_blocks_brush_color

When reading GRD files, this boolean flag indicates if the brush color was taken from the block or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the block’s brush color or specifically set its own. The default is False.

Range: True | False

grd_layers_brush_type

When reading GRD files, this boolean flag indicates if the brush type was taken from the layer or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the layer’s brush type or specifically set its own. The default is False.

Range: True | False

grd_blocks_brush_type

When reading GRD files, this boolean flag indicates if the brush type was taken from the block or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the block’s brush type or specifically set its own. The default is False.

Range: True | False

grd_layers_linetype

When reading GRD files, this boolean flag indicates if the linetype was taken from the layer or if it was specifically set on the feature. When writing GRD files, this boolean flag indicates if the feature should use the layer’s linetype or specifically set its own. The default is False.

Range: True | False

grd_linetype_description

This is a text description of the linetype used for this vector. Refer to the discussion under the heading Linetypes for detailed descriptions. The linetype must be defined in either the mapping file or the template file being used. By default, the layer’s linetype is used. Maximum size is 80 characters, with a maximum of 12 entries.

Example: “__ __ ______ . __ __”