GIS ObjectLand. User Manual
previouscontentsnext / Import and export of data / Chapter 64. Import of spatial data in MIF format

Data files of MIF/MID format

A file of MIF format is a text file which contains graphic data (features) and also possibly description of a table of data possessing attributive data linked with features.

There are some considerable differences in structures of data of MapInfo and ObjectLand, these differences should be taken into account in import.

Description of structure of linked table of attributive data kept in MIF file includes names of data fields, their types and sizes. The attribute “Unique” and the attribute “Indexed” can be also indicated for fields.

Table data itself is stored in an optional file with MID extension. MID file name should coincide with the name of the corresponding MIF file. Record fields are separated from each other using the separator character specified in MIF file. Correspondence between features described in MIF file and records of MID file are set in succession order in files. Thus, one line of MID file corresponds to every feature. This line contains a record about the corresponding feature. Empty lines of MID file denoting absence of table data about the corresponding feature are allowed. If some table records are not linked with any feature, a special dummy feature “None” is used in MIF file.

In table 64-1 there is a list of field types used in files of MID format and field types of ObjectLand tables corresponding to them in the course of import.

Field type of MID file

Field type of ObjectLand table

Integer

Integer

Smallint

Integer

Decimal without fractional part

Integer

Decimal with fractional part

Real

Float

Real

Date

Date

Char

String

Logical

Boolean

Table 64-1. Correspondence of field types when importing from MID files

As it is seen from the table, mainly there is natural correspondence between MID and ObjectLand field types. The most serious difference is connected with processing fields of the type “decimal” which can represent integer numbers as well as real ones depending on the number of digits in fractional part specified in the field description. Apart form that, field width, that is, maximum possible length of the string, is not limited for ObjectLand string fields. In this connection indication of string field width of MID file is ignored.

Detailed description of formats of MIF and MID files is given in manuals on the system MapInfo.

previoustopnext