Skip to main content
lovelyzoo's user avatar
lovelyzoo's user avatar
lovelyzoo's user avatar
lovelyzoo
  • Member for 9 years, 1 month
  • Last seen more than 3 years ago
awarded
awarded
awarded
awarded
awarded
awarded
Loading…
comment
pyqgis standalone script fails to execute clip algorithm
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.
Loading…
awarded
comment
Is there a call in pyqgis that clips a layer similarly to the Geoprocessing Tool?
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?
awarded
comment
Is there a call in pyqgis that clips a layer similarly to the Geoprocessing Tool?
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
Loading…
awarded
comment
What is a convenient way to write OSM data to a .shp file in python
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.