You mention that if we're interested in using a processing algorithm within a script to check out your other video. Which video is that? I can't seem to find it.
This video should be the defacto video for creating QGIS scripts. Pretty much any scripting in QGIS is going to need a UI and the ability to reuse code. Most other videos show you how to do 2+2 in the Python console, and that's not practical when you need to solve a real problem, and re-use it.
Hey! Thanks for the great video! My coding background is in MATLAB but I'm using QGIS/py for a research project. I'm trying to write a script to output the search radius for Hotspot (kernel density) algorithm to Silverman's rule of thumb bandwidth with is a simple expression based on raster cell number, IQR, and std.dev. How should I go about declaring classes when my inputs/outputs are scalars rather than spatial files? Matlab's class declaration is "under the hood" so to speak so I'm starting from square one. Thanks!
I would start by using GDAL or rasterio to read in your raster files as numpy arrays, then perform your operations on the numpy array. This will be similar to matlab and you can create a basic script (with no classes to start). I think that will be easier than trying to develop a class structure for a QGIS-specific script. If you do want to make it a QGIS script in the future you can adapt your code later.
Hello, does the course can be helpful in order to develop a script that can do maps from large databases ? spatial joins need to be done in order to do emissions maps with the help of a code
This is great! Do you know if it's possible to add widgets to the processing provider option? Like if I wanted to add a drop down menu that was populated with the fields of an input shapefile, or produce a plot as an output as well as the mapped output? Also you mention in the video that you have another video on how to add processing algorithms within this processing algorithm, I was just curious which video that is. Thanks for the terrific introduction to this method of plugin building!
To add that much functionality you're probably best off to develop a plugin. I have some videos on that, and a course with code and data at opensourceoptions.com
@@geospatialschool Ah nuts! I have already developed my plugin, it was just for 2.18 and I wanted to upgrade it to look nicer and a bit more user friendly - this seemed like a tidy solution haha. I'll have to fiddle with it all again! Thanks for the prompt reply at any rate, your videos are terrific.
Is it possible to completely automate the generation of QGIS-Projects. Like having a folder for each project with properly formatized CSV-Files and a background layer, which are then imported to QGIS and saved as Project file with a python loop? I was asked to do research on that but unfortunately I dont have any QGIS/ Python skills worth mentioning.
You should be able to do this. See this post to get started with saving project files: gis.stackexchange.com/questions/256790/saving-qgis-project-file-qgs-with-pyqgis. I have other videos that show how to import layers to QGIS. For a detailed course with data a code to get you started with PyQGIS, check out my website: opensourceoptions.com/courses/courses/pyqgis-learn-the-qgis-python-api/
You mention that if we're interested in using a processing algorithm within a script to check out your other video. Which video is that? I can't seem to find it.
This video: th-cam.com/video/QIGfwn6iax4/w-d-xo.html
This video should be the defacto video for creating QGIS scripts. Pretty much any scripting in QGIS is going to need a UI and the ability to reuse code. Most other videos show you how to do 2+2 in the Python console, and that's not practical when you need to solve a real problem, and re-use it.
Thanks! Glad it's helpful
So what's the difference with the Geoprocessing tools?
Hey! Great tutorial! I am trying to do my first template but have input 2 be a raster
Hey! Thanks for the great video! My coding background is in MATLAB but I'm using QGIS/py for a research project. I'm trying to write a script to output the search radius for Hotspot (kernel density) algorithm to Silverman's rule of thumb bandwidth with is a simple expression based on raster cell number, IQR, and std.dev. How should I go about declaring classes when my inputs/outputs are scalars rather than spatial files? Matlab's class declaration is "under the hood" so to speak so I'm starting from square one. Thanks!
I would start by using GDAL or rasterio to read in your raster files as numpy arrays, then perform your operations on the numpy array. This will be similar to matlab and you can create a basic script (with no classes to start). I think that will be easier than trying to develop a class structure for a QGIS-specific script. If you do want to make it a QGIS script in the future you can adapt your code later.
Hello, does the course can be helpful in order to develop a script that can do maps from large databases ? spatial joins need to be done in order to do emissions maps with the help of a code
Like the user must be able to select specific characteristics and get it on a map
You can check out the course content and see some sample lessons on the course page: opensourceoptions.com/course/pyqgis-learn-the-qgis-python-api/
This is great! Do you know if it's possible to add widgets to the processing provider option? Like if I wanted to add a drop down menu that was populated with the fields of an input shapefile, or produce a plot as an output as well as the mapped output? Also you mention in the video that you have another video on how to add processing algorithms within this processing algorithm, I was just curious which video that is. Thanks for the terrific introduction to this method of plugin building!
To add that much functionality you're probably best off to develop a plugin. I have some videos on that, and a course with code and data at opensourceoptions.com
@@geospatialschool Ah nuts! I have already developed my plugin, it was just for 2.18 and I wanted to upgrade it to look nicer and a bit more user friendly - this seemed like a tidy solution haha. I'll have to fiddle with it all again! Thanks for the prompt reply at any rate, your videos are terrific.
Hello man, I loved your video but want to know that can we convert processing toolbox to py plugin??
Is it possible to completely automate the generation of QGIS-Projects.
Like having a folder for each project with properly formatized CSV-Files and a background layer, which are then imported to QGIS and saved as Project file with a python loop?
I was asked to do research on that but unfortunately I dont have any QGIS/ Python skills worth mentioning.
You should be able to do this. See this post to get started with saving project files: gis.stackexchange.com/questions/256790/saving-qgis-project-file-qgs-with-pyqgis. I have other videos that show how to import layers to QGIS. For a detailed course with data a code to get you started with PyQGIS, check out my website: opensourceoptions.com/courses/courses/pyqgis-learn-the-qgis-python-api/
can you edit a script to me? a can pay for it, look azimuth and calculator plugin
Hi. What's your email?