Export from QGis to CAD » History » Version 19
Giulio Di Anastasio, 06/05/2021 17:05
1 | 1 | Giulio Di Anastasio | h1. Export from QGis to CAD |
---|---|---|---|
2 | 1 | Giulio Di Anastasio | |
3 | 1 | Giulio Di Anastasio | An algorithm has been created by Selvarani, to see the whole process click here: |
4 | 1 | Giulio Di Anastasio | https://redmine.auroville.org.in/projects/gis/wiki/Automatic_export_from_QGis_to_dxf |
5 | 2 | Giulio Di Anastasio | |
6 | 2 | Giulio Di Anastasio | h1. QGis Graphical Modeler: An algorithm to automatically export data directly from Gisaf to .dxf format (CAD) |
7 | 2 | Giulio Di Anastasio | |
8 | 4 | Giulio Di Anastasio | > * Login to PostGIS |
9 | 4 | Giulio Di Anastasio | |
10 | 4 | Giulio Di Anastasio | > * Directly from the Gisaf server, load all the layers which need to be converted into .dxf format |
11 | 4 | Giulio Di Anastasio | |
12 | 4 | Giulio Di Anastasio | > * Go to Processing Menu, click on “Graphical Modeler” (or Ctrl+Alt+G) |
13 | 5 | Giulio Di Anastasio | |
14 | 8 | Giulio Di Anastasio | |
15 | 7 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10620/Graphical%20Modeler%20Menu.png! |
16 | 1 | Giulio Di Anastasio | |
17 | 8 | Giulio Di Anastasio | |
18 | 6 | Giulio Di Anastasio | |
19 | 5 | Giulio Di Anastasio | > * The “Model Designer” window will open: |
20 | 5 | Giulio Di Anastasio | |
21 | 10 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10621/Graphical%20Modeler%20Window.png! |
22 | 9 | Giulio Di Anastasio | |
23 | 9 | Giulio Di Anastasio | The final model will look like this: |
24 | 9 | Giulio Di Anastasio | |
25 | 10 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10622/Final%20Model%20Image.png! |
26 | 11 | Giulio Di Anastasio | |
27 | 11 | Giulio Di Anastasio | |
28 | 11 | Giulio Di Anastasio | *Below, the explanation on how the algorithm has been created.* |
29 | 11 | Giulio Di Anastasio | |
30 | 13 | Giulio Di Anastasio | > * An input to the algorithm is needed: go to “Inputs” tab and double click on “Vector Layer” |
31 | 13 | Giulio Di Anastasio | |
32 | 13 | Giulio Di Anastasio | |
33 | 13 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10623/Inputs.png! |
34 | 14 | Giulio Di Anastasio | |
35 | 14 | Giulio Di Anastasio | The window “Input Vector layer Parameter Definition” will open: |
36 | 14 | Giulio Di Anastasio | > * in “Description”, enter “Input Vector layer” |
37 | 14 | Giulio Di Anastasio | > * in “Geometry type” select “Any Geometry Type” |
38 | 14 | Giulio Di Anastasio | > * Click “Ok” |
39 | 14 | Giulio Di Anastasio | |
40 | 14 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10624/Inputs%20Window.png! |
41 | 15 | Giulio Di Anastasio | |
42 | 15 | Giulio Di Anastasio | Input is created as above. |
43 | 15 | Giulio Di Anastasio | 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): |
44 | 15 | Giulio Di Anastasio | > * in the Algorithms panel, type “filter” in the Search Box: this way, all existing algorithms related to “filter” will be listed |
45 | 15 | Giulio Di Anastasio | > * double click on “Feature filter” |
46 | 15 | Giulio Di Anastasio | |
47 | 15 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10625/Feature%20Filter.png! |
48 | 16 | Giulio Di Anastasio | |
49 | 16 | Giulio Di Anastasio | |
50 | 16 | Giulio Di Anastasio | “Feature filter” window will open: |
51 | 16 | Giulio Di Anastasio | |
52 | 16 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10626/Feature%20Filter%20Window.png! |
53 | 16 | Giulio Di Anastasio | |
54 | 16 | Giulio Di Anastasio | > * Click on ‘Add output filter’ icon |
55 | 16 | Giulio Di Anastasio | |
56 | 16 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10627/Add%20Output%20Filter.png! |
57 | 16 | Giulio Di Anastasio | |
58 | 16 | Giulio Di Anastasio | > * Click on expression button !https://redmine.auroville.org.in/attachments/download/10628/Expression%20Button.png! to write an expression for the filter. |
59 | 16 | Giulio Di Anastasio | |
60 | 16 | Giulio Di Anastasio | > * The Expression dialog will open, type the criteria for defining the filter, e.g. “STATUS”=’E’ |
61 | 16 | Giulio Di Anastasio | |
62 | 16 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10629/Status%20E%20Expression.png! |
63 | 17 | Giulio Di Anastasio | |
64 | 17 | Giulio Di Anastasio | > * Click “Ok”: the expression is added in the table of “Outputs and filters” as below. |
65 | 17 | Giulio Di Anastasio | > * In the field “Output Name”, type in the output as ‘E’. |
66 | 17 | Giulio Di Anastasio | |
67 | 17 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10630/Output%20Name.png! |
68 | 18 | Giulio Di Anastasio | |
69 | 18 | Giulio Di Anastasio | > * Repeat the same steps for all other status (Like D,F,N,T,M and X) |
70 | 18 | Giulio Di Anastasio | > * 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” |
71 | 18 | Giulio Di Anastasio | |
72 | 18 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10631/All%20Filters%20Ready.png! |
73 | 18 | Giulio Di Anastasio | |
74 | 18 | Giulio Di Anastasio | --- |
75 | 18 | Giulio Di Anastasio | |
76 | 18 | Giulio Di Anastasio | --- |
77 | 18 | Giulio Di Anastasio | |
78 | 18 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10632/Input%20Layer%20for%20Filters.png! |
79 | 19 | Giulio Di Anastasio | |
80 | 19 | Giulio Di Anastasio | The model will look like below: |
81 | 19 | Giulio Di Anastasio | |
82 | 19 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10633/Model%201%20Graphics.png! |
83 | 19 | Giulio Di Anastasio | |
84 | 19 | Giulio Di Anastasio | As the input layers were taken directly from Gisaf server, where their CRS is WGS 84-EPSG:4326, all outputs need to be reprojected in TM AUSPOS CRS, because the CAD overall survey map is in TM AUSPOS: |
85 | 19 | Giulio Di Anastasio | > * Go to “Algorithms” panel and type “reproject” in the Search Box: this way, all existing algorithms related to “reproject” will be listed |
86 | 19 | Giulio Di Anastasio | > * Double click on “Reproject layer” under “Vector general” |
87 | 19 | Giulio Di Anastasio | |
88 | 19 | Giulio Di Anastasio | p=. !https://redmine.auroville.org.in/attachments/download/10634/Reproject%20Algorithm.png! |