Last active
June 27, 2016 16:11
-
-
Save ccamara/7c5eaf82bea91af0c1566efd031f5f6e to your computer and use it in GitHub Desktop.
Example of non-working QGIS model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"values": { | |
"inputs": { | |
"STRING_CITY": { | |
"values": { | |
"pos": { | |
"values": { | |
"y": 22.0, | |
"x": 120.0 | |
}, | |
"class": "point" | |
}, | |
"param": { | |
"values": { | |
"isAdvanced": false, | |
"name": "STRING_CITY", | |
"default": "Zaragoza", | |
"value": null, | |
"multiline": false, | |
"hidden": false, | |
"optional": false, | |
"description": "City" | |
}, | |
"class": "processing.core.parameters.ParameterString" | |
} | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.ModelerParameter" | |
} | |
}, | |
"helpContent": {}, | |
"group": "Zaragoza Accesible", | |
"name": "OSM data download", | |
"algs": { | |
"QUICKOSMQUERYOVERPASSAPIWITHASTRING_1": { | |
"values": { | |
"name": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_1", | |
"paramsFolded": true, | |
"outputs": {}, | |
"pos": { | |
"values": { | |
"y": 181.0, | |
"x": 245.0 | |
}, | |
"class": "point" | |
}, | |
"outputsFolded": true, | |
"dependencies": [], | |
"params": { | |
"QUERY_STRING": "[out:json][timeout:25];\n// gather results\n(\n // query part for: \u201cnote=\"#Zaccesibilidad\"\u201d\n node[\"note\"=\"#Zaccesibilidad\"]({{nominatim}});\n way[\"note\"=\"#Zaccesibilidad\"]({{nominatim}});\n relation[\"note\"=\"#Zaccesibilidad\"]({{nominatim}});\n);", | |
"NOMINATIM": { | |
"values": { | |
"name": "STRING_CITY" | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.ValueFromInput" | |
}, | |
"EXTENT": [ | |
"0,0,0,0" | |
], | |
"SERVER": "http://overpass-api.de/api/" | |
}, | |
"active": true, | |
"consoleName": "quickosm:queryoverpassapiwithastring", | |
"description": "Query overpass API with a string" | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.Algorithm" | |
}, | |
"QUICKOSMOGRDEFAULT_1": { | |
"values": { | |
"name": "QUICKOSMOGRDEFAULT_1", | |
"paramsFolded": true, | |
"outputs": { | |
"points_LAYER": { | |
"values": { | |
"description": "points", | |
"pos": { | |
"values": { | |
"y": 348.0, | |
"x": 538.0 | |
}, | |
"class": "point" | |
} | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.ModelerOutput" | |
} | |
}, | |
"pos": { | |
"values": { | |
"y": 303.0, | |
"x": 338.0 | |
}, | |
"class": "point" | |
}, | |
"outputsFolded": true, | |
"dependencies": [], | |
"params": { | |
"WHITE_LIST_lines": null, | |
"WHITE_LIST_multilinestrings": null, | |
"WHITE_LIST_multipolygons": null, | |
"FILE": { | |
"values": { | |
"alg": "QUICKOSMQUERYOVERPASSAPIWITHASTRING_1", | |
"output": "OUTPUT_FILE" | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.ValueFromOutput" | |
}, | |
"WHITE_LIST_points": null | |
}, | |
"active": true, | |
"consoleName": "quickosm:ogrdefault", | |
"description": "OGR default" | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.Algorithm" | |
} | |
} | |
}, | |
"class": "processing.modeler.ModelerAlgorithm.ModelerAlgorithm" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[out:json][timeout:25]; | |
// gather results | |
( | |
// query part for: “note="#Zaccesibilidad"” | |
node["note"="#Zaccesibilidad"]({{nominatim}}); | |
way["note"="#Zaccesibilidad"]({{nominatim}}); | |
relation["note"="#Zaccesibilidad"]({{nominatim}}); | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment