Export from QGis to CAD » History » Version 18
Version 17 (Giulio Di Anastasio, 06/05/2021 16:57) → Version 18/35 (Giulio Di Anastasio, 06/05/2021 17:01)
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!
> * 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’.
p=. !https://redmine.auroville.org.in/attachments/download/10630/Output%20Name.png!
> * Repeat the same steps for all other status (Like D,F,N,T,M and X)
> * Click on the “Input layer” button and select “Model Input” in the drop-down list, it will change to “Input Vector layer”. Click on “Ok”
p=. !https://redmine.auroville.org.in/attachments/download/10631/All%20Filters%20Ready.png!
---
---
p=. !https://redmine.auroville.org.in/attachments/download/10632/Input%20Layer%20for%20Filters.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!
> * 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’.
p=. !https://redmine.auroville.org.in/attachments/download/10630/Output%20Name.png!
> * Repeat the same steps for all other status (Like D,F,N,T,M and X)
> * Click on the “Input layer” button and select “Model Input” in the drop-down list, it will change to “Input Vector layer”. Click on “Ok”
p=. !https://redmine.auroville.org.in/attachments/download/10631/All%20Filters%20Ready.png!
---
---
p=. !https://redmine.auroville.org.in/attachments/download/10632/Input%20Layer%20for%20Filters.png!