Modes of attributes download |
The program for importing data from MIF/MID provides for loading attribute information into the map. To load data into the semantics of a map object, the short name (key) of the semantic characteristic must match and the field name in the MIF/MID file. If the characteristics do not match, it is possible to use a mode of setting up the matching of semantics with the classifier data. To do this, in the Setup semantics group, you need to enable the By user element and click the Setup button. In the dialog for setting up the correspondence between MIF-MID attributive data and classifier semantics, on the left side there is a table in which, based on the MIF file data, in a separate line there are indicated the name of the column, the type of data in it, as well as the field size (for columns containing strings and decimal numbers ) and semantics key (requested from the classifier by code from the source file). On the right there are listed the semantic characteristics described in the resource file that are assigned to the selected fields on the left. Besides the attributive information from file MID it is possible to add MIF file name into semantics of map objects. For this purpose it is necessary to tick the appropriate parameter - Save MIF-name to semantic. For an ensuring a more correspondence of object's view on the output map to the object described in file MIF/MID, it is offered to use a dialog component Save data graphics primitives to semantic. At using this control element the information which is contained in file MIF and describes an object view, type, color, shading is written into semantics of object created on a map with the relevant codes of the classifier. At object of type the Point there can be specified a symbol view, color and the size, the name and style of a font, for example: Symbol (57,13658112,7, "maps1", 0), where 57 - this value is assigned to semantics the NUMBER of SIGN SYMBOL; 13658112 - to semantics the COLOR of SIGN, AREA; 7 - to semantics the SIZE of SIGN SYMBOL; "maps1" - to semantics the FONT NAME; 0 - to semantics the FONT STYLE. For object of type the Polygon there are specified the size, type, color of a line: Pen (14,6,44031) The thickness of a line - 14 - is entered into semantics the LINE THICKNESS; Line type - 6 - into semantics the SYMBOL NUMBER of FILLING the LINE (1-255); LINE COLOR - 44031 - into semantics 2041 - LINE COLOR.
The object of type the area can contain the description of type of a line and shading: Pen (14,1,44031) Brush (50,0,16777215) Hatchings are defined by the following characteristics: 50 - a template, is placed into semantics the NUMBER of SIGN SYMBOL (MORE 31); 0 - base color - into semantics the COLOR of SIGN, AREA; 16777215 - background color - into semantics 2045 - BACKGROUND COLOR.
For textual object the font is set: Font ("Helve", 0, 0, 13658112) In brackets the font name, style, the size, base color, color of a background are listed. For the font name there is used the semantics the FONT NAME, for style - semantics the FONT STYLE. The size is recorded into semantics the SIZE of SIGN SYMBOL In ITEMS (1-48), color - into semantics the COLOR of SIGN, AREA. |