Description of codes file |
File of codes is applied at converting of map into DXF format. File of codes is a text file, has an any name and standard name extension .DXK. Serves for compulsory change of object type and a layer name in a DXF-file where the object should be placed. If the file of codes is not set, type and a layer of map object are taken from the classifier, differently from a file of codes. Structure of a file of codes: OBJECT_KEY TYPE LAYER .. OBJECT_KEY TYPE LAYER where: OBJECT_KEY - a key of map object (from the classifier of map resources) TYPE - new type (character of localization) of object. It is set by the following text constants: LIN - linear SQR - area (polygon) DOT - dot (point) LAYER - a new name of object layer (up to 15 symbols, symbols and numerals are allowable only) Principle of work is the following. For current object of a map OBJECT_KEY is searched in a file of codes, coincident with a key of the given object. The found object is placed into a layer LAYER. If the key of object is not found in a file of codes, DXF layer name is established by a layer name of object from the map classifier. If the object in the file of codes is not found, type and a layer name are taken from the classifier. File of codes beforehand prepares by the user in the text editor. Presence // in first two positions of a line is considered as the comment and leads to exception of a line from processing. Example of a correct file of codes looks like: L0031431100 LIN channels_3-10m S0041200000 SQR urban-type_community |