Project

General

Profile

Export from QGis to CAD » History » Version 17

« Previous - Version 17/35 (diff) - Next » - Current version
Giulio Di Anastasio, 06/05/2021 16:57


Export from QGis to CAD

An algorithm has been created by Selvarani, to see the whole process click here:
https://redmine.auroville.org.in/projects/gis/wiki/Automatic_export_from_QGis_to_dxf

QGis Graphical Modeler: An algorithm to automatically export data directly from Gisaf to .dxf format (CAD)

  • Login to PostGIS
  • Directly from the Gisaf server, load all the layers which need to be converted into .dxf format
  • Go to Processing Menu, click on “Graphical Modeler” (or Ctrl+Alt+G)

  • The “Model Designer” window will open:

The final model will look like this:

Below, the explanation on how the algorithm has been created.

  • An input to the algorithm is needed: go to “Inputs” tab and double click on “Vector Layer”

The window “Input Vector layer Parameter Definition” will open:

  • in “Description”, enter “Input Vector layer”
  • in “Geometry type” select “Any Geometry Type”
  • Click “Ok”

Input is created as above.
As a second step, features need to be filtered, because some layers have different “Status” (E, D, F, etc. as defined in CSR Geomatics CAD Layer Naming Standards):

  • in the Algorithms panel, type “filter” in the Search Box: this way, all existing algorithms related to “filter” will be listed
  • double click on “Feature filter”

“Feature filter” window will open:

  • Click on ‘Add output filter’ icon

  • Click on expression button to write an expression for the filter.
  • The Expression dialog will open, type the criteria for defining the filter, e.g. “STATUS”=’E’

  • Click “Ok”: the expression is added in the table of “Outputs and filters” as below.
  • In the field “Output Name”, type in the output as ‘E’.