MapInfo Interchange Format [.MIF] Import Automation Options

Since the Import Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various import options. A typical example would be:

 "Defaults=1,AreasToCurves=1"

This would first set all import options to their default values, then set the AreasToCurves option value to one, which would specify that any areas imported be converted to closed curves.

Option Action Default
Defaults=1 Set all options to their default values No
ForgetOptions=1 Don't remember options for later use No
AreasToCurves=1 Convert area objects to closed curves No
IgnoreStyles=1 Import as base map (ignore styles, colors and fill) No
PrimaryIDField=n Specify that field number n of each record in the optional MID database will be assigned to the primary ID string of each object that is imported from the MIF input file. If the MIF file is not accompanied by a MID file, this option has no effect. 0
SecondaryIDField=n Same as above, except applies to the secondary ID. 0

See Also

Import - Automation

MapInfo Interchange Format (MIF) Export Automation Options

MIF Export Options Dialog

MIF File Format Description