This is an older video, but it still applies. I was able to use these tips to add some additional housekeeping code to a script that I had developed but could easily get to run the housekeeping items that I didn't want to run manually. Really helpful for beginners like me!
Thank you very much! I have been struggling to write a script in my work (I am not even a programmer but I try things) and I wasn`t aware that I can combine python and QGIS tools so easily! This saves me a lot of time.
I have a full course on creating QGIS plugins: geospatialschool.com/courses/qgis-python-plugin-development/ I also have a full course on using the QGIS Python API: geospatialschool.com/courses/qgis-python-scripting-with-pyqgis/ If you're looking for free content, there are other videos covering the basics on the YT channel.
I have a processing script where I need to polygonize multiple rasters the code runs without an error but the results are not shown in proper location even if the output directory was defined. The log message depict that the result is stored in an local/ temp folder in an inappropriate name. Someone pls help me to resolve it
Hi there, Do you know how to use multiprocessing in qgis. When i use multiprocessing in plugin they start a new instance of the aplication and give me a error. I search for some information but i can't fine. Can you help me ? thank you very much
I haven't tried to use multiprocessing with QGIS. I can see how it could create some problems. My guess is that you would be able to use multiprocessing, but there are probably certain API calls that won't work. For example, anything to iface, or the current QGIS instance. I'll try to look into it sometime.
Good questions. Because you might want to make a script that performs multiple operations in sequence with a set of arguments or parameters that don't change. This would make your workflows reproducible. You can also script this out to run for multiple files so you don't have to click through the operation manually if you need to do it 100 times.
This is an older video, but it still applies. I was able to use these tips to add some additional housekeeping code to a script that I had developed but could easily get to run the housekeeping items that I didn't want to run manually. Really helpful for beginners like me!
Awesome! I'm glad it was helpful. My opinion is that writing code is not as hard as it seems and anyone with GIS skills can learn to write code
Thank you very much! I have been struggling to write a script in my work (I am not even a programmer but I try things) and I wasn`t aware that I can combine python and QGIS tools so easily! This saves me a lot of time.
Glad it helped!
Thanks a lot guy , I have got a problem about Fixing Geometry and I use this clip to guide me. And it works.
You're welcome!
Please Answer: How to generate intermediate temporary layer in processing. Use this temporary layer in another process in the same script.
Can you show the use of the editor and write your own plugin?
I have a full course on creating QGIS plugins: geospatialschool.com/courses/qgis-python-plugin-development/
I also have a full course on using the QGIS Python API: geospatialschool.com/courses/qgis-python-scripting-with-pyqgis/
If you're looking for free content, there are other videos covering the basics on the YT channel.
Thank you very much it is very important for me
thanks a lot for handy tips!
I have a processing script where I need to polygonize multiple rasters the code runs without an error but the results are not shown in proper location even if the output directory was defined. The log message depict that the result is stored in an local/ temp folder in an inappropriate name. Someone pls help me to resolve it
how to find the crossover area between the different shapefiles?
Use the intersection tool
Hi there,
Do you know how to use multiprocessing in qgis.
When i use multiprocessing in plugin they start a new instance of the aplication and give me a error.
I search for some information but i can't fine.
Can you help me ?
thank you very much
I haven't tried to use multiprocessing with QGIS. I can see how it could create some problems. My guess is that you would be able to use multiprocessing, but there are probably certain API calls that won't work. For example, anything to iface, or the current QGIS instance. I'll try to look into it sometime.
why do I only get syntax errors when doing exactly what he does here?
thank you very much!!
thank you ! One of the best hack ! 😎
You're welcome!
i am not getting output file. it is showing empty.
Cheers!
Why should one do this instead of pushing a button?? (not joking or trying to be provocative)
Good questions. Because you might want to make a script that performs multiple operations in sequence with a set of arguments or parameters that don't change. This would make your workflows reproducible. You can also script this out to run for multiple files so you don't have to click through the operation manually if you need to do it 100 times.
Godlike.
Now that's a great hack 😁😁😁😁😁