Help Center

Export to GIS

CAD drafting Export to GIS 0   Ribbon: TopoplanImport/Export > CAD software Export to GIS 1 Export to GIS

CAD drawing Export to GIS 2   Menu: TopoplanImport/Export > CAD drafting Export to GIS 3 Export to GIS

CAD software Export to GIS 4   Toolbar: Import/Export > CAD drawing Export to GIS 5 Export to GIS

CAD drafting Export to GIS 6 Command line: GEOEXPORT

The command exports polylines and point objects to *.SHP and *.MIF files.

After running the command, select the objects to be exported. In export templates the objects are filtered from the selection specified at this step. After selecting objects, a dialog for multiple export to geo-formats opens. In the dialog that opens, select an export template from the list or create a new one.

CAD software Export to GIS 7

Creating and editing an export template

Each export template can contain one or more nested templates of Feature classes (Feature class column), which are associated with the output external files of SHAPE or MID/MIF format, where the data will be exported (Destination file column).

CAD drawing Export to GIS 8

To create a class template, expand the export template and double-click an empty field in the Feature class column. In the text field, enter the name of the new template:

CAD drafting Export to GIS 9

note: The name should not contain the following characters: \ / : * ? “ ” < > |

The same can be done using the context menu available in this dialog:

CAD software Export to GIS 10

To edit the content of a class template, select its name in the Feature class column and click CAD drawing Export to GIS 11 button on the right or select Edit in the context menu.

This will open the template settings dialog. A class template is a set of rules for data conversion. It determines which objects will be exported and sets the correspondence between the parameters of nanoCAD objects and external format objects.

CAD drafting Export to GIS 12

The Change order XY box is checked in the case, when the coordinates along the X axis and coordinates along the Y axis should be changed during export.

First, you should specify the type of objects to be exported: Polyline, 2dPolyline, Point.

CAD software Export to GIS 13

Usually, in the nanoCAD drawing, roads and buildings are represented by polylines:

CAD drawing Export to GIS 14

Only one type of exported objects can be specified in each template. To export other types, create new templates.

note: the objects will be exported not from all objects in the document, but from the selection that was made at the first command prompt, immediately after its start.

 

Below there is a table for converting types of objects when exporting to MID/MIF format:

nanoCAD objects type

MID/MIF, SHP objects type

Polyline not closed

(property Closed = No)

Polyline

Polyline closed
(property Closed = Yes)

Polygon (Region)

Point

Point

 

Filtering the exported selection of objects using attributes

If you need to export not all the objects of the specified type, but a certain selection, then you should specify the attribute value by which the selection is carried out. For example, to export all buildings, as a rule, it is enough to set the Polyline object with the Closed “real” attribute value.

Click the <New attribute…> field and select the Closed attribute in the drop-down list

CAD drafting Export to GIS 15

The attribute value is set by clicking CAD software Export to GIS 16 button in the Filter column.

CAD drawing Export to GIS 17

In the dialog that opens, select Compare, and in the drop-down list select the attribute value – Yes.

CAD drafting Export to GIS 18

Filtering options:

No filter

Filtering by attribute value is not required. I.e., the attribute is not used to create the required selection of objects (and only for export of values to an external file).

When the No filter item is set, the CAD software Export to GIS 19 icon in the Filter field of the Export settings dialog disappears.

Search for empty values

Objects with an unassigned value of this attribute will be selected.

Compare

Allows you to set a specific value for an attribute.

A list of fixed values is available for most of the attributes.

For the Level attribute you should enter the value yourself.

Partial matching

Available for the Level attribute that does not have a fixed list of values.

Match case

Available for the Level attribute that does not have a fixed list of values.

Invert

Inverts the selection by the given attribute: the selection will  include all objects with the attribute value NOT meeting the specified criteria.

Now in the Filter column opposite to the Closed attribute, the CAD drawing Export to GIS 20 icon will appear, which means that a value for this attribute has been set and is used as a filter during export.

CAD drafting Export to GIS 21

If you use the resulting template for export, then the output file will contain all closed polylines (buildings) of the same color:

CAD software Export to GIS 22

To export only yellow buildings with preserving polylines color in the output file, it is required to complicate the template a little.

Let’s set one more attribute – Color.

CAD drawing Export to GIS 23

The attribute value should be specified in its filter. To do this, click CAD drafting Export to GIS 24 button in the Filter column next to the corresponding attribute.

CAD software Export to GIS 25

In the window that opens, select the desired value. To set the yellow color, select the Compare item and select Yellow from the drop-down list of available values.

CAD drawing Export to GIS 26

Now all closed yellow polylines will be exported.

 

Exporting attribute values to the external format

To preserve the color during export, the Color attribute should be matched to the desired external format attribute.

You can get a completed list of external format attributes by loading semantic data from XML file of  by scanning an existing MIF or SHP file. To do this, select <Load from file…> or <Scan from file…> in the External object/attribute field from the drop-down list

CAD drafting Export to GIS 27

In the window that appears, specify the file from which you want to get semantic information.

CAD software Export to GIS 28

In case of scanning files, a new xml file is created with an identical name containing semantic information,

Now in the External object/attribute column you can specify an external attribute that should inherit the value of the internal Color attribute when exporting objects.

CAD drawing Export to GIS 29

CAD drafting Export to GIS 30

If objects are sorted into layers, it is most convenient to use the Layer attributes to filter objects.

CAD software Export to GIS 31

AVirtual attribute is used in a case, when during export for the external files objects you need to set the value of the attribute that is missing in nanoCAD objects.

 

Geodata objects

After configuring all templates, in the geodata export dialog, to the right of a name of each template, specify an output file of MIF format, to which the data should be exported.

CAD drawing Export to GIS 32

As a result, we created “template-output file” pairs, indicating by what rules and in which file the data should be exported.

After creating all “template-output file” pairs, click OK to export the data.

The export will be carried out for all templates to which the output file was assigned. Templates without an output file will be ignored.

CAD drafting Export to GIS 33

note: In order to avoid data loss, do not indicate the same output file for different templates.

 

Info: NanoCAD is an easy-to-use, affordable, and yet professional, CAD freeware tool for Windows, that provides a great user experience by providing enhanced performance, full capability, a classic interface and native.dwg format support. nanoCAD has been built to deliver design and project documentation for all industrial purposes. nanoCAD includes a full suite of basic and advanced CAD tools for 2D/3D design and creating industry-standard DWG-compatible CAD files. Our freeware ensures progressive, collaborative and customizable features to improve your efficiency, and includes a few API's, allowing anything from routine task automation to complex CAD application development. You may try nanoCad for free, using the links below, and buy later, if you like it.
We collect Cookies
We use cookies to ensure that we give you the best experience on our website. By clicking “Accept”, you agree to our website’s cookie use as described in our Privacy Statement.