BC MOEP 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).

Special FME attributes are used to hold the parameters specific to MOEP features. The MOEP writer uses these attributes to define aspects of the geometries of the features it writes out, and the MOEP reader will define these attributes from the MOEP features it reads.

One of these attributes is an optional user attribute which can contain up to 66 characters of arbitrary data.

FME considers the ID of the MOEP file to be the FME feature type of an MOEP feature. The feature type of an MOEP feature must match the ID of an MOEP file defined by an MOEP DEF line.

Every MOEP feature, regardless of its geometry type, shares the parameters shown in the following table.

Attribute Name

Contents

moep_type

The type of the geometry for the feature. This attribute will contain one of:

moep_line

moep_contour_line

moep_point

moep_text

moep_arc

moep_code

Character string with up to 10 characters designating the feature code of the feature. If this is not specified for a feature being written, the feature will have the same feature code as the feature which was most recently written to the MOEP file.

moep_attribute

An optional attribute (MOEP type 05 feature) which can contain up to 66 characters of arbitrary text.

(See also the moep_font, moep_weight, and moep_text_group attributes defined on moep_text features.)

The sections below describe the parameters specific to each feature type.

Line Features

moep_type: moep_line

MOEP line features have two or more coordinates. FME features with an moep_type of moep_line correspond to non-contour MOEP features with a type of 02, 03, 12, or 13; the moep_display_type and moep_line_type differentiate between the different types.

The following attributes are defined for moep_line features:

Attribute Name

Contents

moep_display_type

Determines whether the line is a primary line or a duplicate. Legal values are primary and construction. The default is primary.

moep_line_type

Determines whether the MOEP feature is simple or complex (curvilinear). Legal values are curve and line. The default is line.

Contour Features

moep_type: moep_contour_line

MOEP contour line features have three or more coordinates. FME features with an moep_type of moep_contour correspond to MOEP features with a type of 02, 03, 12, or 13 which are represent contour data; the moep_display_type and moep_line_type differentiate between the different types.

Aside from the moep_line_type and moep_display_type attributes that contour lines inherit from moep_line features, the following attribute is defined for moep_contour_line features:

Attribute Name

Contents

moep_contour_elevation

The elevation of the contour line.

Point Features

moep_type: moep_point

In addition to an (X,Y,Z) location, an MOEP point has some additional attributes which affect the display of its point symbol. The symbol will always be centered around its location, but can be rotated and/or scaled, in both the X and Y directions.

Attribute Name

Contents

moep_rotation

Determines the rotation applied to the point symbol, measured in degrees counterclockwise from horizontal. The default is 0.0 degrees.

moep_scale_x

Multiplier applied to scale the point symbol in the X direction.(If this is not provided, it defaults to 1.0.

moep_scale_y

Multiplier applied to scale the point symbol in the Y direction. If this is not provided, it defaults to 1.0.

Arc Features

moep_type: moep_arc

MOEP arc features represent a directed circular segment between two points on an ellipse. The representation of an arc is a set of three (X,Y,Z) coordinates — start of arc, end of arc, and origin of arc — along with a the direction of the arc.

Attribute Name

Contents

moep_sweep_direction

The direction in which the arc is drawn. Legal values are clockwise and counterclockwise. The default is clockwise.

Text Features

moep_type: moep_text

MOEP text features represent textual annotation placed at specific world coordinates.

The full specification of the geometry includes an (X,Y,Z) position, the rotation of the text, the text string itself, the size of the text, and a specification of font, weight, and text group number.

Attribute Name

Contents

moep_rotation

Determines the rotation applied to the text, measured in degrees counterclockwise from horizontal.

Reprojectable: Yes

moep_text_string

The characters which make up a line of the text feature. The maximum length of a line of text is 66 characters. Several text features can be grouped into a single feature using the moep_text_group attribute.

moep_text_size

The size of the text feature, measured in ground meters.

Reprojectable: Yes

moep_font

Specifies a font number for the text, an integer in the range 0..99. See the discussion below this table regarding the encoding of font, weight, and text group.

moep_weight

Specifies the weight of the text, an integer in the range 0..99. See the discussion below this table regarding the encoding of font, weight, and text group.

moep_text_group

Specifies a group number; several text features can be logically grouped together by giving them the same group number. This number is a five digit, decimal integer. See the discussion below this table regarding the encoding of font, weight, and text group.

It is important to note the relationship between the font, weight, text group, and the optional attribute for the feature. If font, weight, and text group attributes are specified, MOEP uses the optional attribute of a text feature to store their values. When these are specified, the format of the attribute string is FFFWWWGGGGGG, where FFF is the font number, WWW is the weight, and GGGGGG is the text group number. Each number is right-justified in its field, padded to the left with spaces as necessary.

Similarly, when reading a text feature the optional attribute, if present, is broken down into a font, weight, and text group.