Export of a vector map into MIF format for the selected object

Top

The program is intended for converting a map into a format MIF (MapInfo Interchange Format), taking into account only the selected objects.

For the program execution it is necessary to choose the menu item - Tools\Run Application\ Converting Data \Export a vector map into format MIF \MID for the selected object.

For each selected object of a map 2 files are created with extension MIF and MID.

The name of each created file includes a name of a source map, a code of a layer from the classifier and a serial number of object.

All files are placed in one folder. The user can designate a folder name and its location.

The view of the conventional symbols formed in file MIF, is set and can be changed by editing a textual file of conformity LANDMIF.TXT which is located in the installation folder with executable modules.

Each line of a file LANDMIF.TXT contains the description of one symbol from the map classifier.

For example:

46730000 SYMBOL (37,16711680,12, " Map Symbols ", 0, % .3f)

51316628 SYMBOL (49,16711680,12, " MapInfo Transportation ", 0, % .3f)

61420000 PEN (2,12,65535)

44212000 FONT ("Arial", 0,0,0)

71111110 PEN (3,7,0) BRUSH (1,16777215,16777215)

The parameter "% .3f” is automatically replaced onto the angle of the symbol turn. If the parameter is equal to zero all symbols will be displayed without turn.

At writing down into the MIF file the geodetic coordinates of objects from the CS-95 are converted to geodetic coordinates of the WGS-84 ("CoordSys Earth Projection 1, 104") in accordance with the order of the transformation specified in the GOST R 51794-2007.

If the source map does not support the recalculation into geodetic coordinates, record looks like "CoordSys Nonearth Units m Bounds".

The list of attributes that are saved in file MID, corresponds to the list of attributes of the layer specified in the map classifier. Additionally into the list of attributes the following attributes are placed:

OBJECTNUMBER Integer - unique number of object;

OBJECTCODE Char (32) - the code of object from the classifier;

OBJECTLOCAL Integer - a code of object localization (0 - line, 2 - point, 4 - vector);

OBJECTNAME Char (32) - the object name.