-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdd width to OSM roads.model3
332 lines (332 loc) · 21.1 KB
/
Add width to OSM roads.model3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<!DOCTYPE model>
<Option type="Map">
<Option type="Map" name="children">
<Option type="Map" name="native:extractbyexpression_1">
<Option type="bool" name="active" value="true"/>
<Option name="alg_config"/>
<Option type="QString" name="alg_id" value="native:extractbyexpression"/>
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="1612"/>
<Option type="double" name="component_pos_y" value="412"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="Excluding bridges and tunnels"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="1412"/>
<Option type="double" name="component_pos_y" value="457"/>
<Option type="double" name="component_width" value="200"/>
<Option name="dependencies"/>
<Option type="QString" name="id" value="native:extractbyexpression_1"/>
<Option type="Map" name="outputs">
<Option type="Map" name="Roads with Width">
<Option type="QString" name="child_id" value="native:extractbyexpression_1"/>
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="0"/>
<Option type="double" name="component_pos_y" value="0"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="Roads with Width"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="1612"/>
<Option type="double" name="component_pos_y" value="502"/>
<Option type="double" name="component_width" value="200"/>
<Option type="invalid" name="default_value"/>
<Option type="bool" name="mandatory" value="false"/>
<Option type="QString" name="name" value="Roads with Width"/>
<Option type="QString" name="output_name" value="OUTPUT"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
</Option>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
<Option type="Map" name="params">
<Option type="List" name="EXPRESSION">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="QString" name="static_value" value=""bridge" != 'T' AND "tunnel" != 'T'"/>
</Option>
</Option>
<Option type="List" name="INPUT">
<Option type="Map">
<Option type="QString" name="child_id" value="native:fixgeometries_1"/>
<Option type="QString" name="output_name" value="OUTPUT"/>
<Option type="int" name="source" value="1"/>
</Option>
</Option>
</Option>
</Option>
<Option type="Map" name="native:fieldcalculator_1">
<Option type="bool" name="active" value="true"/>
<Option name="alg_config"/>
<Option type="QString" name="alg_id" value="native:fieldcalculator"/>
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="853"/>
<Option type="double" name="component_pos_y" value="208"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="Calcolatore di campi"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="1000"/>
<Option type="double" name="component_pos_y" value="435"/>
<Option type="double" name="component_width" value="200"/>
<Option name="dependencies"/>
<Option type="QString" name="id" value="native:fieldcalculator_1"/>
<Option name="outputs"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
<Option type="Map" name="params">
<Option type="List" name="FIELD_LENGTH">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="int" name="static_value" value="2"/>
</Option>
</Option>
<Option type="List" name="FIELD_NAME">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="QString" name="static_value" value="width"/>
</Option>
</Option>
<Option type="List" name="FIELD_PRECISION">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="int" name="static_value" value="0"/>
</Option>
</Option>
<Option type="List" name="FIELD_TYPE">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="int" name="static_value" value="1"/>
</Option>
</Option>
<Option type="List" name="FORMULA">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="QString" name="static_value" value="CASE
 WHEN "fclass" = 'bridleway' THEN 2
 WHEN "fclass" = 'cycleway' THEN 2.5
 WHEN "fclass" = 'footway' THEN 1.5
 WHEN "fclass" = 'living_street' THEN 5
 WHEN "fclass" = 'motorway' THEN 25
 WHEN "fclass" = 'motorway_link' THEN 10
 WHEN "fclass" = 'path' THEN 1
 WHEN "fclass" = 'pedestrian' THEN 3
 WHEN "fclass" = 'primary' THEN 10
 WHEN "fclass" = 'primary_link' THEN 5
 WHEN "fclass" = 'residential' THEN 6
 WHEN "fclass" = 'secondary' THEN 7
 WHEN "fclass" = 'secondary_link' THEN 5
 WHEN "fclass" = 'service' THEN 4
 WHEN "fclass" = 'tertiary' THEN 6
 WHEN "fclass" = 'tertiary_link' THEN 4
 WHEN "fclass" = 'track' THEN 3
 WHEN "fclass" = 'track_grade1' THEN 3
 WHEN "fclass" = 'track_grade2' THEN 3
 WHEN "fclass" = 'track_grade3' THEN 3
 WHEN "fclass" = 'track_grade4' THEN 3
 WHEN "fclass" = 'track_grade5' THEN 3
 WHEN "fclass" = 'trunk' THEN 15
 WHEN "fclass" = 'trunk_link' THEN 7
 WHEN "fclass" = 'unclassified' THEN 5
 ELSE "width"
END
"/>
</Option>
</Option>
<Option type="List" name="INPUT">
<Option type="Map">
<Option type="QString" name="child_id" value="native:reprojectlayer_1"/>
<Option type="QString" name="output_name" value="OUTPUT"/>
<Option type="int" name="source" value="1"/>
</Option>
</Option>
</Option>
</Option>
<Option type="Map" name="native:fixgeometries_1">
<Option type="bool" name="active" value="true"/>
<Option name="alg_config"/>
<Option type="QString" name="alg_id" value="native:fixgeometries"/>
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="1293"/>
<Option type="double" name="component_pos_y" value="408"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="Ripara geometrie"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="1000"/>
<Option type="double" name="component_pos_y" value="585"/>
<Option type="double" name="component_width" value="200"/>
<Option name="dependencies"/>
<Option type="QString" name="id" value="native:fixgeometries_1"/>
<Option name="outputs"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
<Option type="Map" name="params">
<Option type="List" name="INPUT">
<Option type="Map">
<Option type="QString" name="child_id" value="native:fieldcalculator_1"/>
<Option type="QString" name="output_name" value="OUTPUT"/>
<Option type="int" name="source" value="1"/>
</Option>
</Option>
<Option type="List" name="METHOD">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="int" name="static_value" value="1"/>
</Option>
</Option>
</Option>
</Option>
<Option type="Map" name="native:reprojectlayer_1">
<Option type="bool" name="active" value="true"/>
<Option name="alg_config"/>
<Option type="QString" name="alg_id" value="native:reprojectlayer"/>
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="1214"/>
<Option type="double" name="component_pos_y" value="255"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="Riproietta layer"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="700"/>
<Option type="double" name="component_pos_y" value="375"/>
<Option type="double" name="component_width" value="200"/>
<Option name="dependencies"/>
<Option type="QString" name="id" value="native:reprojectlayer_1"/>
<Option name="outputs"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
<Option type="Map" name="params">
<Option type="List" name="CONVERT_CURVED_GEOMETRIES">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="bool" name="static_value" value="false"/>
</Option>
</Option>
<Option type="List" name="INPUT">
<Option type="Map">
<Option type="QString" name="parameter_name" value="osm_roads_layer"/>
<Option type="int" name="source" value="0"/>
</Option>
</Option>
<Option type="List" name="OPERATION">
<Option type="Map">
<Option type="int" name="source" value="2"/>
<Option type="invalid" name="static_value"/>
</Option>
</Option>
<Option type="List" name="TARGET_CRS">
<Option type="Map">
<Option type="QString" name="parameter_name" value="coordinate_system"/>
<Option type="int" name="source" value="0"/>
</Option>
</Option>
</Option>
</Option>
</Option>
<Option name="designerParameterValues"/>
<Option name="groupBoxes"/>
<Option type="Map" name="help">
<Option type="QString" name="ALG_CREATOR" value="Ivan Murano"/>
<Option type="QString" name="ALG_DESC" value="<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.2pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Add Width to the Roads </span><span style=" font-size:12pt;">from OpenStreetMap</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">This processing is designed for those areas that lack the availability of files relating to the polygonal shape of roads. Width values are assigned according to the type of road.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">Sometimes these values may not match reality as OpenStreetMap is a collective project that has not been validated by technicians and therefore includes oversights and errors.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Pre-requisites</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">It is necessary to get the OpenStreetMap roads file via services such as GeoFabrik (</span><a href="https://download.geofabrik.de"><span style=" font-size:10pt; text-decoration: underline; color:#0080ff;">https://download.geofabrik.de</span></a><span style=" font-size:10pt;">), and to import the ‘gis_osm_free_roads_1’ file into the project.</span></p></body></html>"/>
<Option type="QString" name="ALG_VERSION" value="0.1"/>
<Option type="QString" name="SHORT_DESCRIPTION" value="This processing is designed for those areas that lack the availability of files relating to the polygonal shape of roads. Width values are assigned according to the type of road.
Sometimes these values may not match reality as OpenStreetMap is a collective project that has not been validated by technicians and therefore includes oversights and errors."/>
</Option>
<Option type="QString" name="internal_version" value="Version2"/>
<Option name="modelVariables"/>
<Option type="QString" name="model_group" value="Roads from OpenStreetMap"/>
<Option type="QString" name="model_name" value="Add Width to the Roads"/>
<Option type="QString" name="outputGroup" value=""/>
<Option name="outputOrder"/>
<Option type="Map" name="parameterDefinitions">
<Option type="Map" name="coordinate_system">
<Option type="QString" name="default" value="EPSG:32633"/>
<Option type="invalid" name="defaultGui"/>
<Option type="QString" name="description" value="Coordinate System"/>
<Option type="int" name="flags" value="0"/>
<Option type="QString" name="help" value=""/>
<Option name="metadata"/>
<Option type="QString" name="name" value="coordinate_system"/>
<Option type="QString" name="parameter_type" value="crs"/>
</Option>
<Option type="Map" name="osm_roads_layer">
<Option type="List" name="data_types">
<Option type="int" value="1"/>
</Option>
<Option type="invalid" name="default"/>
<Option type="invalid" name="defaultGui"/>
<Option type="QString" name="description" value="OSM Roads Layer"/>
<Option type="int" name="flags" value="0"/>
<Option type="QString" name="help" value=""/>
<Option name="metadata"/>
<Option type="QString" name="name" value="osm_roads_layer"/>
<Option type="QString" name="parameter_type" value="vector"/>
</Option>
<Option type="Map" name="roads_with_width">
<Option type="bool" name="create_by_default" value="true"/>
<Option type="int" name="data_type" value="-1"/>
<Option type="invalid" name="default"/>
<Option type="invalid" name="defaultGui"/>
<Option type="QString" name="description" value="Roads with Width"/>
<Option type="int" name="flags" value="0"/>
<Option type="QString" name="help" value=""/>
<Option type="Map" name="metadata">
<Option type="QString" name="_modelChildId" value="native:extractbyexpression_1"/>
<Option type="QString" name="_modelChildOutputName" value="Roads with Width"/>
<Option type="QString" name="_modelChildProvider" value="native"/>
</Option>
<Option type="QString" name="name" value="roads_with_width"/>
<Option type="QString" name="parameter_type" value="sink"/>
<Option type="bool" name="supports_append" value="false"/>
<Option type="bool" name="supports_non_file_outputs" value="true"/>
</Option>
</Option>
<Option name="parameterOrder"/>
<Option type="Map" name="parameters">
<Option type="Map" name="coordinate_system">
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="543"/>
<Option type="double" name="component_pos_y" value="421"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="coordinate_system"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="400"/>
<Option type="double" name="component_pos_y" value="435"/>
<Option type="double" name="component_width" value="200"/>
<Option type="QString" name="name" value="coordinate_system"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="Map" name="osm_roads_layer">
<Option type="QString" name="color" value=""/>
<Option type="Map" name="comment">
<Option type="QString" name="color" value=""/>
<Option type="QString" name="component_description" value=""/>
<Option type="double" name="component_height" value="60"/>
<Option type="double" name="component_pos_x" value="598"/>
<Option type="double" name="component_pos_y" value="188"/>
<Option type="double" name="component_width" value="100"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
<Option type="QString" name="component_description" value="osm_roads_layer"/>
<Option type="double" name="component_height" value="30"/>
<Option type="double" name="component_pos_x" value="400"/>
<Option type="double" name="component_pos_y" value="285"/>
<Option type="double" name="component_width" value="200"/>
<Option type="QString" name="name" value="osm_roads_layer"/>
<Option type="bool" name="outputs_collapsed" value="true"/>
<Option type="bool" name="parameters_collapsed" value="true"/>
</Option>
</Option>
</Option>