Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Would seem to be the correct answer but a judicious print statement reveals the types of vlayer and clayer to be: <qgis._core.QgsVectorLayer object at 0x7f9457c1cc30> <qgis._core.QgsVectorLayer object at 0x7f9457c1ccc8>. Busy today but I'll try and add more analysis when I can get back to this.
This is the correct answer and works fine when I do this within the QGIS console. I should have added that I want to do this in a standalone script. When I do so it fails with "Unable to execute algorithm. Wrong parameter value: path/to/lines.shp". Is there an obvious answer here or should I ask a new question?
This is the correct answer and works fine when I do this within the QGIS console. I should have added that I want to do this in a standalone script. When I do so it fails with Unable to execute algorithm
Thanks, this is very helpful and has largely answered my question. What is still mysterious to me is how you have determined the schema. What would help would be a document that can disentangle which concepts are native to OSM/Overpass and which are coming from the shapefile format. Any suggestions much appreciated.