Browse Source

update Processing

tags/1.1
Etienne Trimaille 4 years ago
parent
commit
03552a692d

+ 11
- 0
CoreQuickOSM/ExceptionQuickOSM.py View File

@@ -56,6 +56,17 @@ class NetWorkErrorException(QuickOsmException):
56 56
             msg = msg + " with " + suffix
57 57
         QuickOsmException.__init__(self,msg)
58 58
 
59
+'''
60
+QueryFactory
61
+'''
62
+class QueryFactoryException(QuickOsmException):
63
+    def __init__(self, msg=None, suffix=None):
64
+        if not msg:
65
+            msg = QApplication.translate("Exception", u"Error while building the query")
66
+        if suffix:
67
+            msg = msg + " : " + suffix
68
+        QuickOsmException.__init__(self,msg)
69
+
59 70
 '''
60 71
 Nominatim
61 72
 '''

+ 3
- 3
CoreQuickOSM/QueryFactory.py View File

@@ -70,7 +70,7 @@ class QueryFactory():
70 70
         
71 71
         #Check if is ok ?
72 72
         if self.__nominatim and self.__bbox:
73
-            return False, "Nominatim OR bbox, not both"
73
+            raise QueryFactoryException(suffix="nominatim OR bbox, not both")
74 74
         
75 75
         if self.__nominatim == '{{nominatim}}' or self.__nominatim == True:
76 76
             self.__nominatim = '{{nominatim}}'
@@ -79,11 +79,11 @@ class QueryFactory():
79 79
             self.__bbox = '{{bbox}}'
80 80
         
81 81
         if not self.__key:
82
-            return False, "Key required"
82
+            raise QueryFactoryException(suffix="key required")
83 83
         
84 84
         for osmObject in self.__osmObjects:
85 85
             if osmObject not in QueryFactory.OSM_TYPES:
86
-                return False, "Wrong OSM object"
86
+                raise QueryFactoryException(suffix="wrong OSM object")
87 87
           
88 88
         #TEST OK, so continue and build the query
89 89
         TAB = '     '

+ 2
- 2
ProcessingQuickOSM/API/OverpassQueryGeoAlgorithm.py View File

@@ -48,7 +48,7 @@ class OverpassQueryGeoAlgorithm(GeoAlgorithm):
48 48
 
49 49
         self.addParameter(ParameterString(self.SERVER, 'Overpass API','http://overpass-api.de/api/', False, False))
50 50
         self.addParameter(ParameterString(self.QUERY_STRING,'Query (XML or OQL)', '', True,False))
51
-        self.addParameter(ParameterExtent(self.EXTENT, 'If {{bbox}} in the query, extent (999,999,999,999 is a wrong value)', default="999,999,999,999"))
51
+        self.addParameter(ParameterExtent(self.EXTENT, 'If {{bbox}} in the query, extent (0,0,0,0 is a wrong value)', default="0,0,0,0"))
52 52
         self.addParameter(ParameterString(self.NOMINATIM, 'If {{nominatim}} in the query, place','', False, True))
53 53
         
54 54
         self.addOutput(OutputFile(self.OUTPUT_FILE, 'OSM file'))
@@ -86,7 +86,7 @@ class OverpassQueryGeoAlgorithm(GeoAlgorithm):
86 86
         
87 87
         #Extent of the layer
88 88
         extent = self.getParameterValue(self.EXTENT)
89
-        if extent != "999,999,999,999":
89
+        if extent != "0,0,0,0":
90 90
             #xmin,xmax,ymin,ymax
91 91
             extent = [float(i) for i in extent.split(',')]
92 92
             geomExtent = QgsGeometry.fromRect(QgsRectangle(extent[0],extent[2],extent[1],extent[3]))

+ 2
- 2
ProcessingQuickOSM/Tools/QueryFactoryGeoAlgorithm.py View File

@@ -49,7 +49,7 @@ class QueryFactoryGeoAlgorithm(GeoAlgorithm):
49 49
         
50 50
         self.addParameter(ParameterString(self.FIELD_KEY, 'Key','',optional=False))
51 51
         self.addParameter(ParameterString(self.FIELD_VALUE, 'Value','',optional=True))
52
-        self.addParameter(ParameterExtent(self.FIELD_EXTENT, 'Extent (999,999,999,999 is wrong value)', default="999,999,999,999"))
52
+        self.addParameter(ParameterExtent(self.FIELD_EXTENT, 'Extent (0,0,0,0 is wrong value)', default="0,0,0,0"))
53 53
         self.addParameter(ParameterString(self.FIELD_NOMINATIM, 'Nominatim',optional=True))
54 54
         
55 55
         #osm_objects = ['node','way','relation','all']
@@ -93,7 +93,7 @@ class QueryFactoryGeoAlgorithm(GeoAlgorithm):
93 93
         if value == '':
94 94
             value = None
95 95
         
96
-        if extent == "999,999,999,999":
96
+        if extent == "0,0,0,0":
97 97
             extent = None
98 98
         
99 99
         #osmObjects = self.getParameterValue(self.FIELD_OSM_OBJECTS)

+ 1
- 1
doc/QueryFactoryGeoAlgorithm.py.html View File

@@ -8,7 +8,7 @@
8 8
 		<h3>Value</h3>
9 9
 		<p>The OSM's value. This can be empty</p>
10 10
 		<h3>Extent</h3>
11
-		<p>An extent</p>
11
+		<p>An extent. Be carefull, the query factory will generate only {{bbox}} if the extent is different than 0,0,0,0. You should send the extent to "Query overpass API" too.</p>
12 12
 		<h3>Nominatim</h3>
13 13
 		<p>A place where you are looking for.</p>
14 14
 		<h3>Timeout</h3>

+ 1
- 1
doc/main.fr.html View File

@@ -10,7 +10,7 @@
10 10
 	<body>
11 11
 		<h2>QuickOSM</h2>
12 12
 		<p>
13
-			QuickOSM permet de d'obtenir rapidement des données OSM grâce à l'Overpass API.
13
+			QuickOSM permet d'obtenir rapidement des données OSM grâce à l'Overpass API.
14 14
 			<ul>
15 15
 				<li>Générer des requêtes en fournissant une clé/valeur</li>
16 16
 				<li>Choisir d'exécuter sur un espace ou une emprise</li>

+ 2
- 0
doc/main.html View File

@@ -170,6 +170,8 @@
170 170
 		<p>
171 171
 			QuickOSM brings a lot of new processing algorithms. You should have a look to these algos. Some models are available in the models's folder of the plugin.
172 172
 			<br />
173
+			Be carefull, Processing has some bugs, particularly with version 2.2.0-2.
174
+			<br />
173 175
 			In processing, it's required to <strong>parse all layers</strong> (points, lines, multilinestrings and multipolygons). To improve performance on layers you don't want, you can put a single comma in the field about columns. This comma avoids a loop in the parser.
174 176
 			<br />
175 177
 			For each algorithm, some helps are provided.

+ 0
- 38
models/ecoles-mtp.model View File

@@ -1,38 +0,0 @@
1
-NAME:ecoles-MTP
2
-GROUP:quickOSM
3
-VALUE:HARDCODEDPARAMVALUE_EXTENT_2===0,1,0,1
4
-VALUE:HARDCODEDPARAMVALUE_SERVER_2===http://overpass-api.de/api/
5
-VALUE:HARDCODEDPARAMVALUE_NAME_0===1
6
-ALGORITHM:quickosm:queriesavailable
7
-120.0,160.0
8
-None
9
--1|HARDCODEDPARAMVALUE_NAME_0
10
-None
11
-ALGORITHM:quickosm:readaninifilefromstring
12
-340.0,260.0
13
-None
14
-0|INI
15
-None
16
-None
17
-None
18
-None
19
-None
20
-ALGORITHM:quickosm:queryoverpassapiwithastring
21
-241.0,403.0
22
-None
23
--1|HARDCODEDPARAMVALUE_SERVER_2
24
-1|QUERY_STRING
25
--1|HARDCODEDPARAMVALUE_EXTENT_2
26
-None
27
-ALGORITHM:quickosm:ogrdefault
28
-665.0,389.0
29
-None
30
-2|OUTPUT_FILE
31
-1|WHITE_LIST_multipolygons
32
-1|WHITE_LIST_multilinestrings
33
-1|WHITE_LIST_lines
34
-1|WHITE_LIST_points
35
-ou|980.0,550.0
36
-ou|980.0,520.0
37
-ou|980.0,460.0
38
-ou|980.0,490.0

+ 456
- 128
models/voirie_insee.model View File

@@ -1,128 +1,456 @@
1
-NAME:voirie_insee
2
-GROUP:quickosm
3
-PARAMETER:ParameterString|STRING_INSEE|INSEE|25047
4
-120.0,60.0
5
-PARAMETER:ParameterString|STRING_KEY|key|highway
6
-150.0,527.0
7
-PARAMETER:ParameterString|STRING_VALUE|value|
8
-146.0,456.0
9
-PARAMETER:ParameterNumber|NUMBER_BUFFER|buffer|0.0|None|500.0
10
-1306.0,78.0
11
-VALUE:HARDCODEDPARAMVALUE_FIELD_KEY_0===ref:INSEE
12
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_lines_2===None
13
-VALUE:HARDCODEDPARAMVALUE_FIELD_KEY_4===highway
14
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_lines_6===None
15
-VALUE:HARDCODEDPARAMVALUE_DISSOLVE_7===True
16
-VALUE:HARDCODEDPARAMVALUE_DISTANCE_7===500
17
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_multipolygons_6===None
18
-VALUE:HARDCODEDPARAMVALUE_SERVER_1===http://overpass-api.de/api/
19
-VALUE:HARDCODEDPARAMVALUE_EXTENT_1===0,1,0,1
20
-VALUE:HARDCODEDPARAMVALUE_SERVER_5===http://overpass-api.de/api/
21
-VALUE:HARDCODEDPARAMVALUE_EXTENT_5===0,1,0,1
22
-VALUE:HARDCODEDPARAMVALUE_FIELD_VALUE_0===25047
23
-VALUE:HARDCODEDPARAMVALUE_TARGET_CRS_10===EPSG:2154
24
-VALUE:HARDCODEDPARAMVALUE_FIELD_VALUE_4===None
25
-VALUE:HARDCODEDPARAMVALUE_SEGMENTS_7===5
26
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_multipolygons_2===None
27
-VALUE:HARDCODEDPARAMVALUE_FIELD_3===osm_id
28
-VALUE:HARDCODEDPARAMVALUE_FIELD_EXTENT_4===0,1,0,1
29
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_points_6===None
30
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_points_2===None
31
-VALUE:HARDCODEDPARAMVALUE_FIELD_TIMEOUT_0===25
32
-VALUE:HARDCODEDPARAMVALUE_FIELD_OSM_OBJECTS_4===0
33
-VALUE:HARDCODEDPARAMVALUE_FIELD_TIMEOUT_4===25
34
-VALUE:HARDCODEDPARAMVALUE_FIELD_OSM_OBJECTS_0===0
35
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_multilinestrings_6===None
36
-VALUE:HARDCODEDPARAMVALUE_WHITE_LIST_multilinestrings_2===None
37
-VALUE:HARDCODEDPARAMVALUE_FIELD_EXTENT_0===0,1,0,1
38
-VALUE:HARDCODEDPARAMVALUE_NOMINATIM_5===Montpellier
39
-VALUE:HARDCODEDPARAMVALUE_NOMINATIM_1===Montpellier
40
-VALUE:HARDCODEDPARAMVALUE_TARGET_CRS_9===EPSG:2154
41
-VALUE:HARDCODEDPARAMVALUE_FIELD_NOMINATIM_0===None
42
-ALGORITHM:quickosm:queryfactory
43
-149.0,140.0
44
-None
45
--1|HARDCODEDPARAMVALUE_FIELD_KEY_0
46
--1|STRING_INSEE
47
--1|HARDCODEDPARAMVALUE_FIELD_EXTENT_0
48
--1|HARDCODEDPARAMVALUE_FIELD_NOMINATIM_0
49
--1|HARDCODEDPARAMVALUE_FIELD_TIMEOUT_0
50
-ALGORITHM:quickosm:queryoverpassapiwithastring
51
-332.0,198.0
52
-None
53
--1|HARDCODEDPARAMVALUE_SERVER_1
54
-0|OUTPUT_QUERY
55
--1|HARDCODEDPARAMVALUE_EXTENT_1
56
--1|HARDCODEDPARAMVALUE_NOMINATIM_1
57
-None
58
-ALGORITHM:quickosm:ogrdefault
59
-515.0,257.0
60
-None
61
-1|OUTPUT_FILE
62
--1|HARDCODEDPARAMVALUE_WHITE_LIST_multipolygons_2
63
--1|HARDCODEDPARAMVALUE_WHITE_LIST_multilinestrings_2
64
--1|HARDCODEDPARAMVALUE_WHITE_LIST_lines_2
65
--1|HARDCODEDPARAMVALUE_WHITE_LIST_points_2
66
-commune|886.0,286.0
67
-None
68
-None
69
-None
70
-ALGORITHM:quickosm:getfirstfieldofanattribute
71
-642.0,387.0
72
-None
73
-2|multipolygons_LAYER
74
--1|HARDCODEDPARAMVALUE_FIELD_3
75
-ALGORITHM:quickosm:queryfactory
76
-805.0,446.0
77
-None
78
--1|STRING_KEY
79
--1|STRING_VALUE
80
--1|HARDCODEDPARAMVALUE_FIELD_EXTENT_4
81
-3|OUTPUT_VALUE
82
--1|HARDCODEDPARAMVALUE_FIELD_TIMEOUT_4
83
-ALGORITHM:quickosm:queryoverpassapiwithastring
84
-972.0,504.0
85
-None
86
--1|HARDCODEDPARAMVALUE_SERVER_5
87
-4|OUTPUT_QUERY
88
--1|HARDCODEDPARAMVALUE_EXTENT_5
89
--1|HARDCODEDPARAMVALUE_NOMINATIM_5
90
-None
91
-ALGORITHM:quickosm:ogrdefault
92
-1135.0,562.0
93
-None
94
-5|OUTPUT_FILE
95
--1|HARDCODEDPARAMVALUE_WHITE_LIST_multipolygons_6
96
--1|HARDCODEDPARAMVALUE_WHITE_LIST_multilinestrings_6
97
--1|HARDCODEDPARAMVALUE_WHITE_LIST_lines_6
98
--1|HARDCODEDPARAMVALUE_WHITE_LIST_points_6
99
-None
100
-None
101
-None
102
-None
103
-ALGORITHM:qgis:fixeddistancebuffer
104
-1410.0,502.0
105
-None
106
-9|OUTPUT
107
--1|NUMBER_BUFFER
108
--1|HARDCODEDPARAMVALUE_SEGMENTS_7
109
--1|HARDCODEDPARAMVALUE_DISSOLVE_7
110
-None
111
-ALGORITHM:qgis:clip
112
-1563.0,691.0
113
-None
114
-10|OUTPUT
115
-7|OUTPUT
116
-voirie|1808.0,725.0
117
-ALGORITHM:qgis:reprojectlayer
118
-1164.0,400.0
119
-None
120
-2|multipolygons_LAYER
121
--1|HARDCODEDPARAMVALUE_TARGET_CRS_9
122
-None
123
-ALGORITHM:qgis:reprojectlayer
124
-1324.0,630.0
125
-None
126
-6|lines_LAYER
127
--1|HARDCODEDPARAMVALUE_TARGET_CRS_10
128
-None
1
+{
2
+    "values": {
3
+        "inputs": {
4
+            "NUMBER_BUFFER": {
5
+                "values": {
6
+                    "pos": {
7
+                        "values": {
8
+                            "y": 40.0, 
9
+                            "x": 759.0
10
+                        }, 
11
+                        "class": "point"
12
+                    }, 
13
+                    "param": {
14
+                        "values": {
15
+                            "isAdvanced": false, 
16
+                            "name": "NUMBER_BUFFER", 
17
+                            "min": 0.0, 
18
+                            "default": 500.0, 
19
+                            "max": null, 
20
+                            "value": null, 
21
+                            "hidden": false, 
22
+                            "isInteger": false, 
23
+                            "description": "buffer"
24
+                        }, 
25
+                        "class": "processing.core.parameters.ParameterNumber"
26
+                    }
27
+                }, 
28
+                "class": "processing.modeler.ModelerAlgorithm.ModelerParameter"
29
+            }, 
30
+            "STRING_INSEE": {
31
+                "values": {
32
+                    "pos": {
33
+                        "values": {
34
+                            "y": 25.0, 
35
+                            "x": 111.0
36
+                        }, 
37
+                        "class": "point"
38
+                    }, 
39
+                    "param": {
40
+                        "values": {
41
+                            "isAdvanced": false, 
42
+                            "name": "STRING_INSEE", 
43
+                            "default": "25047", 
44
+                            "value": null, 
45
+                            "multiline": false, 
46
+                            "hidden": false, 
47
+                            "optional": false, 
48
+                            "description": "INSEE"
49
+                        }, 
50
+                        "class": "processing.core.parameters.ParameterString"
51
+                    }
52
+                }, 
53
+                "class": "processing.modeler.ModelerAlgorithm.ModelerParameter"
54
+            }
55
+        }, 
56
+        "group": "quickosm", 
57
+        "name": "voirie_insee", 
58
+        "algs": {
59
+            "QUICKOSMOGRDEFAULT_2": {
60
+                "values": {
61
+                    "name": "QUICKOSMOGRDEFAULT_2", 
62
+                    "paramsFolded": true, 
63
+                    "outputs": {}, 
64
+                    "pos": {
65
+                        "values": {
66
+                            "y": 489.0, 
67
+                            "x": 955.0
68
+                        }, 
69
+                        "class": "point"
70
+                    }, 
71
+                    "outputsFolded": true, 
72
+                    "dependencies": [], 
73
+                    "params": {
74
+                        "WHITE_LIST_lines": null, 
75
+                        "WHITE_LIST_multilinestrings": null, 
76
+                        "WHITE_LIST_multipolygons": null, 
77
+                        "FILE": {
78
+                            "values": {
79
+                                "alg": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_2", 
80
+                                "output": "OUTPUT_FILE"
81
+                            }, 
82
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
83
+                        }, 
84
+                        "WHITE_LIST_points": null
85
+                    }, 
86
+                    "active": true, 
87
+                    "consoleName": "quickosm:ogrdefault", 
88
+                    "description": "OGR default"
89
+                }, 
90
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
91
+            }, 
92
+            "QUICKOSMOGRDEFAULT_1": {
93
+                "values": {
94
+                    "name": "QUICKOSMOGRDEFAULT_1", 
95
+                    "paramsFolded": true, 
96
+                    "outputs": {
97
+                        "multipolygons_LAYER": {
98
+                            "values": {
99
+                                "description": "commune", 
100
+                                "pos": {
101
+                                    "values": {
102
+                                        "y": 198.0, 
103
+                                        "x": 687.0
104
+                                    }, 
105
+                                    "class": "point"
106
+                                }
107
+                            }, 
108
+                            "class": "processing.modeler.ModelerAlgorithm.ModelerOutput"
109
+                        }
110
+                    }, 
111
+                    "pos": {
112
+                        "values": {
113
+                            "y": 208.0, 
114
+                            "x": 385.0
115
+                        }, 
116
+                        "class": "point"
117
+                    }, 
118
+                    "outputsFolded": true, 
119
+                    "dependencies": [], 
120
+                    "params": {
121
+                        "WHITE_LIST_lines": null, 
122
+                        "WHITE_LIST_multilinestrings": null, 
123
+                        "WHITE_LIST_multipolygons": null, 
124
+                        "FILE": {
125
+                            "values": {
126
+                                "alg": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_1", 
127
+                                "output": "OUTPUT_FILE"
128
+                            }, 
129
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
130
+                        }, 
131
+                        "WHITE_LIST_points": null
132
+                    }, 
133
+                    "active": true, 
134
+                    "consoleName": "quickosm:ogrdefault", 
135
+                    "description": "OGR default"
136
+                }, 
137
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
138
+            }, 
139
+            "QUICKOSMQUERYFACTORY_1": {
140
+                "values": {
141
+                    "name": "QUICKOSMQUERYFACTORY_1", 
142
+                    "paramsFolded": true, 
143
+                    "outputs": {}, 
144
+                    "pos": {
145
+                        "values": {
146
+                            "y": 92.0, 
147
+                            "x": 124.0
148
+                        }, 
149
+                        "class": "point"
150
+                    }, 
151
+                    "outputsFolded": true, 
152
+                    "dependencies": [], 
153
+                    "params": {
154
+                        "FIELD_NOMINATIM": null, 
155
+                        "FIELD_KEY": "ref:INSEE", 
156
+                        "FIELD_TIMEOUT": 25.0, 
157
+                        "FIELD_EXTENT": [
158
+                            "0,0,0,0"
159
+                        ], 
160
+                        "FIELD_VALUE": {
161
+                            "values": {
162
+                                "name": "STRING_INSEE"
163
+                            }, 
164
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromInput"
165
+                        }
166
+                    }, 
167
+                    "active": true, 
168
+                    "consoleName": "quickosm:queryfactory", 
169
+                    "description": "Query factory"
170
+                }, 
171
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
172
+            }, 
173
+            "QUICKOSMQUERYFACTORY_2": {
174
+                "values": {
175
+                    "name": "QUICKOSMQUERYFACTORY_2", 
176
+                    "paramsFolded": true, 
177
+                    "outputs": {}, 
178
+                    "outputsFolded": true, 
179
+                    "pos": {
180
+                        "values": {
181
+                            "y": 373.0, 
182
+                            "x": 691.0
183
+                        }, 
184
+                        "class": "point"
185
+                    }, 
186
+                    "dependencies": [], 
187
+                    "params": {
188
+                        "FIELD_NOMINATIM": {
189
+                            "values": {
190
+                                "alg": "QUICKOSMGETFIRSTFIELDOFANATTRIBUTE_1", 
191
+                                "output": "OUTPUT_VALUE"
192
+                            }, 
193
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
194
+                        }, 
195
+                        "FIELD_KEY": "highway", 
196
+                        "FIELD_TIMEOUT": 25.0, 
197
+                        "FIELD_EXTENT": [
198
+                            "0,0,0,0"
199
+                        ], 
200
+                        "FIELD_VALUE": null
201
+                    }, 
202
+                    "active": true, 
203
+                    "consoleName": "quickosm:queryfactory", 
204
+                    "description": "Query factory"
205
+                }, 
206
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
207
+            }, 
208
+            "QUICKOSMGETFIRSTFIELDOFANATTRIBUTE_1": {
209
+                "values": {
210
+                    "name": "QUICKOSMGETFIRSTFIELDOFANATTRIBUTE_1", 
211
+                    "paramsFolded": true, 
212
+                    "outputs": {}, 
213
+                    "pos": {
214
+                        "values": {
215
+                            "y": 295.0, 
216
+                            "x": 547.0
217
+                        }, 
218
+                        "class": "point"
219
+                    }, 
220
+                    "outputsFolded": true, 
221
+                    "dependencies": [], 
222
+                    "params": {
223
+                        "FIELD": "osm_id", 
224
+                        "VECTOR_LAYER": {
225
+                            "values": {
226
+                                "alg": "QUICKOSMOGRDEFAULT_1", 
227
+                                "output": "multipolygons_LAYER"
228
+                            }, 
229
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
230
+                        }
231
+                    }, 
232
+                    "active": true, 
233
+                    "consoleName": "quickosm:getfirstfieldofanattribute", 
234
+                    "description": "Get first field of an attribute"
235
+                }, 
236
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
237
+            }, 
238
+            "QUICKOSMQUERYOVERPASSAPIWITHASTRING_2": {
239
+                "values": {
240
+                    "name": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_2", 
241
+                    "paramsFolded": true, 
242
+                    "outputs": {}, 
243
+                    "pos": {
244
+                        "values": {
245
+                            "y": 431.0, 
246
+                            "x": 823.0
247
+                        }, 
248
+                        "class": "point"
249
+                    }, 
250
+                    "outputsFolded": true, 
251
+                    "dependencies": [], 
252
+                    "params": {
253
+                        "QUERY_STRING": {
254
+                            "values": {
255
+                                "alg": "QUICKOSMQUERYFACTORY_2", 
256
+                                "output": "OUTPUT_QUERY"
257
+                            }, 
258
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
259
+                        }, 
260
+                        "NOMINATIM": null, 
261
+                        "EXTENT": [
262
+                            "0,0,0,0"
263
+                        ], 
264
+                        "SERVER": "http://overpass-api.de/api/"
265
+                    }, 
266
+                    "active": true, 
267
+                    "consoleName": "quickosm:queryoverpassapiwithastring", 
268
+                    "description": "Query overpass API with a string"
269
+                }, 
270
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
271
+            }, 
272
+            "QUICKOSMQUERYOVERPASSAPIWITHASTRING_1": {
273
+                "values": {
274
+                    "name": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_1", 
275
+                    "paramsFolded": true, 
276
+                    "outputs": {}, 
277
+                    "pos": {
278
+                        "values": {
279
+                            "y": 154.0, 
280
+                            "x": 233.0
281
+                        }, 
282
+                        "class": "point"
283
+                    }, 
284
+                    "outputsFolded": true, 
285
+                    "dependencies": [], 
286
+                    "params": {
287
+                        "QUERY_STRING": {
288
+                            "values": {
289
+                                "alg": "QUICKOSMQUERYFACTORY_1", 
290
+                                "output": "OUTPUT_QUERY"
291
+                            }, 
292
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
293
+                        }, 
294
+                        "NOMINATIM": null, 
295
+                        "EXTENT": [
296
+                            "0,0,0,0"
297
+                        ], 
298
+                        "SERVER": "http://overpass-api.de/api/"
299
+                    }, 
300
+                    "active": true, 
301
+                    "consoleName": "quickosm:queryoverpassapiwithastring", 
302
+                    "description": "Query overpass API with a string"
303
+                }, 
304
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
305
+            }, 
306
+            "QGISCLIP_1": {
307
+                "values": {
308
+                    "name": "QGISCLIP_1", 
309
+                    "paramsFolded": true, 
310
+                    "outputs": {
311
+                        "OUTPUT": {
312
+                            "values": {
313
+                                "description": "voirie", 
314
+                                "pos": {
315
+                                    "values": {
316
+                                        "y": 632.0, 
317
+                                        "x": 1531.0
318
+                                    }, 
319
+                                    "class": "point"
320
+                                }
321
+                            }, 
322
+                            "class": "processing.modeler.ModelerAlgorithm.ModelerOutput"
323
+                        }
324
+                    }, 
325
+                    "pos": {
326
+                        "values": {
327
+                            "y": 605.0, 
328
+                            "x": 1319.0
329
+                        }, 
330
+                        "class": "point"
331
+                    }, 
332
+                    "outputsFolded": true, 
333
+                    "dependencies": [], 
334
+                    "params": {
335
+                        "INPUT": {
336
+                            "values": {
337
+                                "alg": "QGISREPROJECTLAYER_2", 
338
+                                "output": "OUTPUT"
339
+                            }, 
340
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
341
+                        }, 
342
+                        "OVERLAY": {
343
+                            "values": {
344
+                                "alg": "QGISFIXEDDISTANCEBUFFER_1", 
345
+                                "output": "OUTPUT"
346
+                            }, 
347
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
348
+                        }
349
+                    }, 
350
+                    "active": true, 
351
+                    "consoleName": "qgis:clip", 
352
+                    "description": "Clip"
353
+                }, 
354
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
355
+            }, 
356
+            "QGISREPROJECTLAYER_1": {
357
+                "values": {
358
+                    "name": "QGISREPROJECTLAYER_1", 
359
+                    "paramsFolded": true, 
360
+                    "outputs": {}, 
361
+                    "pos": {
362
+                        "values": {
363
+                            "y": 276.0, 
364
+                            "x": 818.0
365
+                        }, 
366
+                        "class": "point"
367
+                    }, 
368
+                    "outputsFolded": true, 
369
+                    "dependencies": [], 
370
+                    "params": {
371
+                        "INPUT": {
372
+                            "values": {
373
+                                "alg": "QUICKOSMOGRDEFAULT_1", 
374
+                                "output": "multipolygons_LAYER"
375
+                            }, 
376
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
377
+                        }, 
378
+                        "TARGET_CRS": "EPSG:2154"
379
+                    }, 
380
+                    "active": true, 
381
+                    "consoleName": "qgis:reprojectlayer", 
382
+                    "description": "Reproject layer"
383
+                }, 
384
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
385
+            }, 
386
+            "QGISREPROJECTLAYER_2": {
387
+                "values": {
388
+                    "name": "QGISREPROJECTLAYER_2", 
389
+                    "paramsFolded": true, 
390
+                    "outputs": {}, 
391
+                    "pos": {
392
+                        "values": {
393
+                            "y": 547.0, 
394
+                            "x": 1082.0
395
+                        }, 
396
+                        "class": "point"
397
+                    }, 
398
+                    "outputsFolded": true, 
399
+                    "dependencies": [], 
400
+                    "params": {
401
+                        "INPUT": {
402
+                            "values": {
403
+                                "alg": "QUICKOSMOGRDEFAULT_2", 
404
+                                "output": "lines_LAYER"
405
+                            }, 
406
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
407
+                        }, 
408
+                        "TARGET_CRS": "EPSG:2154"
409
+                    }, 
410
+                    "active": true, 
411
+                    "consoleName": "qgis:reprojectlayer", 
412
+                    "description": "Reproject layer"
413
+                }, 
414
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
415
+            }, 
416
+            "QGISFIXEDDISTANCEBUFFER_1": {
417
+                "values": {
418
+                    "name": "QGISFIXEDDISTANCEBUFFER_1", 
419
+                    "paramsFolded": true, 
420
+                    "outputs": {}, 
421
+                    "pos": {
422
+                        "values": {
423
+                            "y": 431.0, 
424
+                            "x": 1162.0
425
+                        }, 
426
+                        "class": "point"
427
+                    }, 
428
+                    "outputsFolded": true, 
429
+                    "dependencies": [], 
430
+                    "params": {
431
+                        "INPUT": {
432
+                            "values": {
433
+                                "alg": "QGISREPROJECTLAYER_1", 
434
+                                "output": "OUTPUT"
435
+                            }, 
436
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromOutput"
437
+                        }, 
438
+                        "SEGMENTS": "5", 
439
+                        "DISSOLVE": "True", 
440
+                        "DISTANCE": {
441
+                            "values": {
442
+                                "name": "NUMBER_BUFFER"
443
+                            }, 
444
+                            "class": "processing.modeler.ModelerAlgorithm.ValueFromInput"
445
+                        }
446
+                    }, 
447
+                    "active": true, 
448
+                    "consoleName": "qgis:fixeddistancebuffer", 
449
+                    "description": "Fixed distance buffer"
450
+                }, 
451
+                "class": "processing.modeler.ModelerAlgorithm.Algorithm"
452
+            }
453
+        }
454
+    }, 
455
+    "class": "processing.modeler.ModelerAlgorithm.ModelerAlgorithm"
456
+}

Loading…
Cancel
Save