Landmark Zycor Graphics File (ZGF) Feature Representation

In addition to the generic FME feature attributes that FME Workbench adds to all features (see About Feature Type Attributes), this format also adds format-specific attributes (Format Attributes).

All ZGF features contain the zgf_type attribute. The value for this attribute is set identically to the value of the feature’s feature type.

Attribute Name

Contents

zgf_type

Specifies what type of data the feature represents.

Range:

zgf_applicationdata

zgf_clipwindow

zgf_marker

zgf_polygon

zgf_polyline

zgf_text

Default: No default

Furthermore, all ZGF features contain the following attributes, which are obtained from the MGU containing the feature:

Attribute Name

Contents

zgf_mgu_name

The name of the MGU containing the feature.

Range: Maximum of 76 characters

Default: Blank

zgf_mgu_type

The type of picture contained by the MGU.

Range: Maximum of 4 characters

Default: Blank

zgf_mgu_status

An integer denoting the status of the MGU. A non-zero value may indicate that the MGU should not be visible.

Range: 32-bit integer

Default: No default.

ZGF features also receive some attributes from the LGB containing the feature, as follows:

Attribute Name

Contents

zgf_lgb_type

An integer code describing what is contained by the LGB, such as the map border, a title block, a contour, a posted well, etc.

Range: 32-bit integer

Default: No default

zgf_lgb_ignore

An integer indicating whether the LGB should be ignored.

Range:

< 0 - ignore the LGB

>= 0 - do not ignore the LGB

Default: No default

Application Data

zgf_type: zgf_applicationdata

ZGF application data features contains non-graphical, application specific data. They do not have any geometry.

The following table lists the attributes common to all zgf_applicationdata features.

Attribute Name

Contents

zgf_id

Identification number.

Range: 32-bit integer

Default: No default.

zgf_data

The application data.

Range: Strings

Default: No default.

Clip Window

zgf_type: zgf_clipwindow

Clip Window features describe a rectangular area to which other features should be clipped. Note that the ZGF Reader does not actually do any clipping, it simply reads these as rectangular features of type zgf_clipwindow.

The following table lists the attributes common to all zgf_clipwindow features.

Attribute Name

Contents

zgf_mode

Specifies whether or not the clip window is “on”, i.e. that other features should be clipped to this window.

Range:

0 - off (don’t clip)

1 - on (clip)

Default: No default

zgf_units

See the Polyline section.

Marker

zgf_type: zgf_marker

The zgf_marker features indicate a point at which a well symbol or symbols should be drawn.

The following table lists the attributes common to all zgf_marker features.

Attribute Name

Contents

zgf_marker_number

This is a number specifying what sort of symbol to draw at the point.

Range: 32-bit integer

Default: No default

zgf_marker_height

This specifies the height of this marker.

Range: 32-bit real

Default: No default

zgf_id

A marker record in a ZGF file may actually contain several points. These are split into separate point features by the ZGF Reader. Thus, this is a unique ID given to each marker record, so that points that were originally from the same marker record will have the same zgf_id value.

Range: 32-bit integer

Default: No default

zgf_color_index

See the Polyline section.

zgf_units

See the Polyline section.

Polygon

zgf_type: zgf_polygon

ZGF polygon features specify solid-filled area (polygonal) features.

The following table lists the attributes common to all zgf_polygon features.

Attribute Name

Contents

zgf_color_index

See the Polyline section.

Polyline

zgf_type: zgf_polyline

ZGF line features specify linear features defined by a sequence of x and y coordinates.

These attributes are specific to line features.

Attribute Name

Contents

zgf_line_type

An integer code describing the appearance of the line.

Range:

1 - normal line

2 - dashed line

3 - bold line

4 - hachured line

5 - hachured line

6 - double dashed line

7 - triple dashed line

Default: No default

zgf_smooth

The smoothing flag

zgf_continue

Specifies whether or not the polyline was constructed from multiple smaller segments, as stored in the ZGF file.

Range:

0 - stored as a single, standalone line

1 - stored as multiple line segments

Default: 0

zgf_line_width

The width of the line.

Range: 32-bit real

Default: No default

zgf_first_dash_length

zgf_second_dash_length

zgf_third_dash_length

For dashed lines, these denote the length of the dashes.

Range: 32-bit real

Default: No default

zgf_first_dash_gap

zgf_second_dash_gap

zgf_third_dash_gap

For dashed lines, these denote the length of the gaps.

Range: 32-bit real

Default: No default

zgf_hachure_direction

zgf_hachure_spacing

zgf_hachure_length

Specify the presentation properties of hachure lines.

zgf_marker_number

 

For normal or boldface lines, if zgf_marker_number is not 0, this attribute specifies the symbol that should be drawn at each point on the line.

Range: 32-bit integer

Default: No default

zgf_marker_height

If zgf_marker_number is specified, zgf_marker_height denotes the height of this marker.

Range: 32-bit real

Default: No default

zgf_color_index

An index to the color table owned by the feature’s containing MGU. Used to find the feature’s color.

Range: 0 - 255

Default: No default

zgf_units

Indicates the natural coordinate space for the feature. Note that all coordinates are converted to user space by the ZGF reader.

Range:

1 - user (also called application, engineering, or scaled)

2 - plotter (also called unscaled)

3 - normalized (all coordinates between 0.0 - 1.0, inclusive)

Default: No default

Text

zgf_type: zgf_text

Text features describe a text string located at a particular position.

They have the following attributes:

Attribute Name

Contents

zgf_text_string

The text string.

Range: Strings

Default: No default

zgf_text_height

This specifies the height of the text.

Range: 32-bit real

Default: No default

zgf_angle

The text’s angle of rotation in degrees.

Range: 0.00 - 360.00

Default: No default.

zgf_font

The font.

Range:

1 - Zycor original

2 - Roman Simplex

3 - Roman Complex

4 - Italics

5 - Duplex

Default: No default.

zgf_justification

Justification of the text string.

Range:

1 - lower left

2 - lower right

3 - center

Default: No default.

zgf_color_index

See the Polyline section.

zgf_units

See the Polyline section.