Export from QGis to CAD » History » Version 16
Version 15 (Giulio Di Anastasio, 06/05/2021 16:49) → Version 16/35 (Giulio Di Anastasio, 06/05/2021 16:55)
h1. 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
h1. 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)
p=. !https://redmine.auroville.org.in/attachments/download/10620/Graphical%20Modeler%20Menu.png!
> * The “Model Designer” window will open:
p=. !https://redmine.auroville.org.in/attachments/download/10621/Graphical%20Modeler%20Window.png!
The final model will look like this:
p=. !https://redmine.auroville.org.in/attachments/download/10622/Final%20Model%20Image.png!
*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”
p=. !https://redmine.auroville.org.in/attachments/download/10623/Inputs.png!
The window “Input Vector layer Parameter Definition” will open:
> * in “Description”, enter “Input Vector layer”
> * in “Geometry type” select “Any Geometry Type”
> * Click “Ok”
p=. !https://redmine.auroville.org.in/attachments/download/10624/Inputs%20Window.png!
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”
p=. !https://redmine.auroville.org.in/attachments/download/10625/Feature%20Filter.png!
“Feature filter” window will open:
p=. !https://redmine.auroville.org.in/attachments/download/10626/Feature%20Filter%20Window.png!
> * Click on ‘Add output filter’ icon
p=. !https://redmine.auroville.org.in/attachments/download/10627/Add%20Output%20Filter.png!
> * Click on expression button !https://redmine.auroville.org.in/attachments/download/10628/Expression%20Button.png! to write an expression for the filter.
> * The Expression dialog will open, type the criteria for defining the filter, e.g. “STATUS”=’E’
p=. !https://redmine.auroville.org.in/attachments/download/10629/Status%20E%20Expression.png!
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
h1. 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)
p=. !https://redmine.auroville.org.in/attachments/download/10620/Graphical%20Modeler%20Menu.png!
> * The “Model Designer” window will open:
p=. !https://redmine.auroville.org.in/attachments/download/10621/Graphical%20Modeler%20Window.png!
The final model will look like this:
p=. !https://redmine.auroville.org.in/attachments/download/10622/Final%20Model%20Image.png!
*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”
p=. !https://redmine.auroville.org.in/attachments/download/10623/Inputs.png!
The window “Input Vector layer Parameter Definition” will open:
> * in “Description”, enter “Input Vector layer”
> * in “Geometry type” select “Any Geometry Type”
> * Click “Ok”
p=. !https://redmine.auroville.org.in/attachments/download/10624/Inputs%20Window.png!
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”
p=. !https://redmine.auroville.org.in/attachments/download/10625/Feature%20Filter.png!
“Feature filter” window will open:
p=. !https://redmine.auroville.org.in/attachments/download/10626/Feature%20Filter%20Window.png!
> * Click on ‘Add output filter’ icon
p=. !https://redmine.auroville.org.in/attachments/download/10627/Add%20Output%20Filter.png!
> * Click on expression button !https://redmine.auroville.org.in/attachments/download/10628/Expression%20Button.png! to write an expression for the filter.
> * The Expression dialog will open, type the criteria for defining the filter, e.g. “STATUS”=’E’
p=. !https://redmine.auroville.org.in/attachments/download/10629/Status%20E%20Expression.png!