You are here: Popular Formats > MapInfo TAB (MAPINFO/MITAB) Reader/Writer > Feature Representation

Feature Representation

MapInfo features consist of geometry and attributes. The attribute names are defined in the DEF line and there is a value for each attribute in each FME MapInfo feature.

In addition, each MapInfo FME feature contains several special attributes to hold the type of the geometric entity and its display parameters. All MapInfo FME features contain the mapinfo_type attribute, which identifies the geometric type. All MapInfo features may contain either or both of the fme_color and fme_fill_color attributes, which store the color and fill color of the feature respectively.

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

Attribute Name

Contents

mapinfo_type

The MapInfo geometric type of this entity.

Range:

  • mapinfo_point |
  • mapinfo_polyline|
  • mapinfo_region|
  • mapinfo_text|
  • mapinfo_ellipse|
  • mapinfo_arc|
  • mapinfo_rectangle|
  • mapinfo_rounded_rectangle|
  • mapinfo_collection|
  • mapinfo_none

Default: No default

mapinfo_metadata{}.name

mapinfo_metadata{}.value

These list attributes are used to write metadata to the .tab file. On write these name-value pairs will be written out as ‘“name” = “value”’ in the metadata section of the .tab file immediately following the table definition. On read these attributes will be populated from the same metadata section. These attributes accept strings up to 255 characters long.

Note: For metadata writing to function correctly, the number of name attributes should be the same as the number of value attributes.

Note: These attributes will only appear when using the MITAB reader or writer.

Note: Since metadata is a feature type level concept the metadata written to the .tab file is determined entirely by the first feature to pass to the feature type, metadata attributes on following features will be ignored by the writer.

fme_color

A normalized RGB triplet representing the color of the feature, with format r,g,b.

Range: 0,0,0 to 1,1,1

Default: No default

fme_fill_color

A normalized RGB triplet representing the fill color of the feature, with format r,g,b.

Range: 0,0,0 to 1,1,1

Default: No default

Points

Font Points

Custom Points

Multipoints

Polylines

Regions

Text

Ellipse

Arc

Rectangle

Rounded Rectangle

Collections