Converter to Shapefile format

Print Top page

The program the "Export to Shape" is intended for export of a vector map to the Shape format.

The output data of the program are sets of files: file of SHP data, index file SHX, file of attributes DBF and a file of project parameters PRJ.

 The main file, index file, file of attributes and file of parameters will have identical names, but different files extensions. The specified set of files is created for each layer and a view of objects.

All files are written into the folder selected by the user.

Inside the selected folder, a folder with the sheet name is created for each sheet of the map.

The folder name will be the same as the value of the Nomenclature field from the Map Passport dialog.

Inside the folder of the map sheet the folders onto each layer of the map are created.

The name of the layer folder will be same as value of the Key field for the layer in the Classifier Editor dialog.

Inside the folder of the map layer the sets of files are recorded for each view of object in this layer.

The file name for the object view will be the same as the value of the Short Name field for the object in the Classifier Editor dialog.

If the Short name coincides at objects with different type of the metrics (polygons, arcs, point objects, objects with three-dimensional metrics), then additional sets of files will be formed with addition of keywords  by type of metric (for example, rivers-arc.shp, rivers-zarc.shp, rivers-zpolygon.shp and so on).

Attributes of objects are written into the DBF file.

Number of fields in DBF file both their names and types are defined by the list of admissible semantics for the object view in the Classifier Editor dialog.

The separate field of DBF table corresponds to one semantic characteristic of object from the classifier. Each field name of DBF table should be unique.

The table must consist of at least one field. The maximum number of fields is 255. Field names in the DBF table are limited to 10 characters.

Therefore, it is necessary to check up the value of the Key (short name) field in the Semantics bookmark for exported characteristics.

This value is used for forming names of fields in DBF table.

It is recommended to use symbols of the English alphabet in this field.

If you use the dialog field: Upload service semantics, the list of fields of DBF table is supplemented with the following service fields:

 

Classification code of object is stored in the ObjectCode field.

Unique number of object is stored in the ObjectID field.

Name of object view is stored in the ObjectName field.

 

If the XML-file "toshp" is placed next to the map classifier file (file "rsc") or in the folder with the executable program (for example, for the classifier 25t05g.rsc - 25t05g.rsc.toshp), then the composition of layers, objects and attributes will be defined from this file.

 

The file "toshp" has the following general form:

 

<? xml version = "1.0" encoding = "UTF-8"?>

<maptoshp>

<dbffields>

 <field id = "2" name = "objlength"/>

 <field id = "3" name = "objstate"/>

 <field id = "9" name = "objname"/>

 ...

<\dbffields>

<folders>

<layer id = "3" name = "roads">

<object key = "highway" name = "highway">

<field id = "2"/>

<field id = "3"/>

<field id = "9"/>

...

</object>

<object key = "road" name = "road">

<field id = "2"/>

<field id = "9"/>

</object>

...

</layer>

...

</folders>

</maptoshp>

 

In the dbffields section there are listed all admissible attributes for all objects with specifying the semantics code and the DBF field name.

DBF field names are specified in the "name" field.

The folders section lists all the layers for which the individual folders will be created.

Names of folders are specified in the "name" field.

The object section describes each set of objects for the layer folder. The name of the set is specified in the "name" field.

The field section specifies the identifier (the semantics code) that will be stored in the DBF file for the set of objects.

Names of DBF fields for different kinds of objects can have identical names for the different semantics codes, if these semantics are not written into one DBF file.

Names of folders and files are written in any national language in UTF encoding.

 

Coordinates of objects are recorded in the geodetic system WGS-84 in degrees.

If you are exporting a large-scale plan with unknown projection parameters, the coordinates are written in meters in the local system.

If the sheet is re-processed, the old files will be replaced automatically without informational messages.

To change the name of the input map, you must activate the input field of the name of the corresponding map or click the Select File button.

To finish the work, use the Exit button.

The result of the converter work is logged into the file "log".