Feature Representation

MGC Dataset Structure

MGC is a flat data format that consists of a single data file with a fixed schema.

File Structure

MGC datasets are text files that consist of a header block followed by an arbitrary number of features.

Header attributes are single line name value pairs, separated by colons.

Features consist of a type name and attributes contained in a multiline { ... } block. Feature attributes are sometimes multiline, either a fixed number based on the attribute name or a dynamic number using a embedded { ... } block.

Feature Attributes

In addition to the generic FME feature attributes that FME adds to all features, this format adds the format-specific attributes described in this section.

Geometry

The MGC reader provides full support for all MGC geometry types.

Fixed Schema

The MGC reader supports a fixed schema where each of the following FME feature types maps directly to a corresponding MGC feature with the same name:

  • Symbol
  • Line
  • Polyline
  • TacticalLine
  • Ellipse
  • Circle
  • Triangle
  • Rectangle
  • Sector

Common User Attributes

The following MGC user attributes are common to all of the feature types.

Attribute Name

Segment Name

Source

Description

Start DTG

End DTG

Remarks1

Remarks2

Remarks3

Remarks4

AmplifyingData

GUID

Mil2525A Code

Symbol Code

Type

Text Label

Common Format Attributes

The following MGC format attributes are common to all of the feature types.

MGC Format Attribute

Notes

mgc_modified

 

mgc_created

 

mgc_line_type

 

mgc_line_geometry

 

mgc_line_style

 

mgc_line_width

 

mgc_close_polygon

 

mgc_fill_type

 

mgc_text_color

 

mgc_color

 

mgc_edge_color

 

mgc_background_color

 

mgc_fill_color

 

mgc_symbol_size

 

mgc_tgpoint_size

 

mgc_font

 

mgc_justification

 

mgc_bold

 

mgc_italic

 

mgc_underline

 

mgc_strikethrough

 

mgc_text_size

 

mgc_orientation

 

mgc_offset

 

mgc_parentid

 

mgc_menuid

 

mgc_labeltgl

 

mgc_label

 

mgc_name

 

mgc_priority

 

mgc_relativetgl

 

mgc_pickabletgl

 

mgc_visibletgl

 

mgc_edgetgl

 

mgc_backgroundtgl

 

mgc_hilitetgl

 

mgc_decluttertgl

 

mgc_blinktgl

 

mgc_labeltype

 

mgc_childvisible

 

mgc_animlabeltgl

 

mgc_size

 

mgc_alignment

 

mgc_scaled_lines

 

mgc_show_label

 

mgc_scale_label

 

mgc_label_height

 

mgc_label_width

 

mgc_reference_scale

 

Line

Overview

A Line feature consists of two connected points.

Reader Notes

mgc_type will be populated with “mgc_line”.

Polyline

MGC Format Attribute

Notes

mgc_closed_flag

 

Overview

A Polyline consists of an arbitrary number of connected points.

Reader Notes

mgc_type will be populated with “mgc_polyline”.

Symbol

MGC User Attribute

Remarks

Reinforced

 

Detached

 

Modifier Mask

 

MilPlot

 

Black Icon

 

Overview

A Symbol consists of a single point.

Reader Notes

mgc_type will be populated with “mgc_symbol”.

TacticalLine

MGC User Attribute

Remarks

Anchor Point 3

 

Unique Designation

 

Unique Designation1

 

Modifier Mask

 

Overview

A TacticalLine consists of a two connected points.

Reader Notes

mgc_type will be populated with “mgc_tacticalline”.

Ellipse

Overview

An Ellipse maps to an fme_ellipse.

Reader Notes

mgc_type will be populated with “mgc_ellipse”.Circle

Overview

A Circle maps to an fme_ellipse with equal primary and secondary axes.

Reader Notes

mgc_type will be populated with “mgc_circle”.

Triangle

Overview

A Triangle maps to an fme_polygon with three vertices.

Reader Notes

mgc_type will be populated with “mgc_triangle”.

Sector

Overview

A Sector maps to an fme_polygon composed of two connected arcs centered on the same point and having the same start and end sweep.

Reader Notes

mgc_type will be populated with “mgc_sector”.

Rectangle

MGC Format Attribute

Notes

mgc_rounded_corners

 

Overview

A Rectangle maps to an fme_polygon with four vertices.

Reader Notes

mgc_type will be populated with “mgc_rectangle”.