Converter from DXF format |
It is intended for loading files of DXF format of ACAD system into internal format of Map 2011 system. Start of the converter is carried out through Tools / Run Applications menu item of Map 2011 system. For work of converter it is necessary to specify a name (way) of DXF-file and a name (way) of map classifier. The name of a formed map automatically is established by name of the input file and can be changed. The following types of system objects are loaded ACAD: 3DFACE, ARC, CIRCLE, DIMENSION, HATCH, INSERT, LINE, LWPOLYLINE, MTEXT, POINT, POLYLINE, SEQEND, SOLID, SPLINE, TEXT, TRACE, VERTEX. Converter can executes following types of data loading: - loading with saving of a graphic objects image; - loading by classifier of map objects; - loading by data base. Loading with saving of graphic objects image is carried out, if Solid button or Outline button of converter dialog window is selected. Map objects have a zero classification code and the graphic description by ACAD primitives: color and, if possible, type of a line. Following restrictions of lines types are accepted: - continuous lines, simple dashed lines and simple dotted lines are saving their image; - dot-dashed lines, complicated dashed lines, complicated dotted lines are replaced onto a dotted line by a line; - complicated lines containing in the description the symbols, signs, etc., are replaced onto dashed line with offset by a line (see description of graphic objects of an electronic map). Following shading are carried out: a grid of 90 degrees, vertical lines and horizontal lines. Shadings of other kinds are not carried out. Solid and shading on a map are absent at outline loading. If the given loading is carried out with addition of semantics, all map objects contain Own name characteristic (text of the title). As its value it will be set the name of ACAD layer or a map layer name corresponding to it, that is defined by a condition (is switched off / is switched on) of Layers names from classifier button. For correlation of ACAD layers and a map it is preliminary necessary to edit the map classifier, using names of ACAD layers as identifiers of map layers. Map objects created from descriptions of blocks contain semantics Own name (text of the title); name of ACAD block is used as its value. For recoding the received map objects according to unified system of objects classification, it is necessary to edit objects, using the established values of semantics. Loading by map classifier. Simple loading and loading with recoding of objects can be carried out. Simple loading is carried out at the switched on Scheme button of the converter dialog window. In this case ACAD primitives are loaded in an outline kind by service classification codes of map classifier. Color and ACAD lines type are not saved. Loading by map resources classifier with recoding of objects. This mode of loading is carried out, if Object name or Object key button is switched on. Thus the input DXF file is formed so that names of DXF layers are accordingly names or keys of map objects (or the map classifier is edited so that names of map objects correspond to names of ACAD layers). At loading into a map the classification codes from the map classifier on DXF layer name are given to objects. The kind (image) of objects depends on the established object code, the graphic kind of ACAD objects is not saved. Customizing of conformity of objects keys and ACAD layers can be carried out directly in a dialog window for this purpose it is necessary to switch on Custom table button or to press Customize button of the converter dialog window. The result of customizing is saved in the table < name of the classifier> .cus, and data of the table are used for recoding of objects. Loading of data with use of database tables is possible, if source DXF - the file is connected to external databases. Files of a database should be located in the same directory, as DXF file. Two loading modes of ACAD objects into map with use of databases are possible: - from tables records of database; - with creation of link tables with a map. At loading from tables of a database the classification code, type and characteristics (semantics), contained in connected record of a database table are appropriated to the map object. It allows to describe map object by classifier of map objects. For ensuring queries of database table fields values and access to the map classifier the customizing of conformity of names of database table fields and semantics names of map classifier objects is carried out. Window of table fields names adjusting opens at inclusion of From table records button of the window of DXF2MAP converter. The result of adjusting is used during loading of ACAD objects into map. At loading DXF with creation of link tables with a map ACAD objects are loaded the same as in Solid mode (object image in ACAD is saved), but thus new database tables are formed of initial tables of a database. Each record of these tables contains record of the initial table, added with two fields: Map name and Unique object number characterizing the link of map object and the table of a database. Tables of link with a map are created in the same directory where there are initial files of a database and have a name: <prefix> <table name> .DBF. Prefix LINK is accepted by default, but its value can be changed in the Link table prefix field of the converter dialog window. The received tables of a database can be open together with the created map in Map 2011 system for the further processing. The data can be loaded as into a new map, and are added into existing one. For addition of objects into an existing map Create button should be switched off. Otherwise the new map is created; its type depends on the established measurements units of loaded ACAD data. At loading the data in meters the user map is created, the metrics of objects is formed in meters on district in conditional system of coordinates. At loading the data in degrees the geographic map of the specified scale is created, the metrics of objects is formed in meters on district in rectangular system of coordinates. Correctness of installation of measurements units is assigned to the user. Dimension of the metrics depends on a condition of 3Dmetrics button: if the button is switched on, the three-dimensional metrics is formed, differently - bidimensional (Z coordinate is rejected). Group loading of DXF files in a map is carried out, if after starting the task in dialogue of opening you by mouse click set the list of several files in the field for a choice of a target file name.
|